- Install python (latest version recommended) and pip (latest version recommended)
- Install postgresql
- Install mongodb
- Create user and database in postgresql (Config to be added in project settings file)
- Start mongo server
- Create user in Mongodb.
- Create admin user inside admin DB
use admin db.createUser({ user: , pwd: , roles: ["userAdminAnyDatabase"] })
- Create DB in MongoDB.
use orgstackdb
- Create user inside orgstackdb DB
db.createUser({ user: ,pwd: ,roles:[{role: "userAdminAnyDatabase" , db:}]})
- Install virtualenv
- Create new virtualenv and activate
- Go to project folder: cd orgstack_backend
- Install the requirements: pip install -r requirements.txt
- Create the intial migrations: From the root directory, run ./manage.py makemigrations (or python manage.py makemigrations)
- Migrate the intial migrations ./manage.py migrate (or python manage.py migrate)
- To create the superuser for your django admin panel, run command ./manage.py createsuperuser (or python manage.py createsuperuser)
- To start the project, run command ./manage.py runserver (or python manage.py runserver). By default the server will be running at 127.0.0.1:8000