zuri-training / Favicon-Gen-team62

Favicon generating app by proj-62 team
3 stars 15 forks source link

set up and configure postresql #150

Open Karen-akuma opened 2 years ago

Allaanm commented 2 years ago

To Setup Postgres Database:

~ Go to Postgres website and download the latest Postgres version for your OS Run the installer and make sure all options are ticked including pgAdmin 4

~ In the Password section, enter a password you will be using for your Postgres, and take note of this password as you will be using it very often

~ In the Port section, leave the default port as 5432, don't change it ~ Click next until it starts installing ~ At the end of the install, uncheck Stack Builder and click finish ~ Open pgAdmin 4, when it loads, you will be asked to create master password. You can use the same password you used in Step 3, then click OK ~ Then on the left side panel, click on Servers and you will be asked for your password from Step 3. Enter it and also tick Save Password and click OK. ~ Then, still on the left side panel, right-click on Databases and create a new database The database name should be FavitudeDB, enter it then click OK ~ Now go to the project folder in your code editor (i.e. VS Code) ~ Create a .env file at the project root. ~ Populate your .env with the following:

DB_NAME=FavitudeDB USER=postgres PASSWORD=your postgres password HOST=localhost PORT=5432 SECRET_KEY=your django secret key DEBUG=True: