To run the project on posgres database you need to install postgresql 10+ in your system
- Install postgres:
sudo apt-get install postgresql postgresql-contrib
- Now create a superuser for PostgreSQL
sudo -u postgres createuser --superuser name_of_user
- And create a database using created user account
sudo -u name_of_user createdb name_of_database
- You can access created database with created user by,
psql -U name_of_user -d name_of_database
- Your postgres database url wil be something like
postgresql://localhost/name_of_database
Or, if you have setup password then,
postgresql://username:password@localhost/name_of_database
- Now take this url and go back to [this section in Main Readme file](../README.md#setting up-the-postgres-databse)
#### Windows setup: <a id='windows_pg'></a>
Download and install [official site](https://www.postgresql.org/download/windows/)
1. Create a postgreql database and obtain its local url