Skip to content

manumathew23/org-stack-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project setup guide

  1. Install python (latest version recommended) and pip (latest version recommended)
  2. Install postgresql
  3. Install mongodb
  4. Create user and database in postgresql (Config to be added in project settings file)
  5. Start mongo server
  6. Create user in Mongodb.
  7. Create admin user inside admin DB

use admin db.createUser({ user: , pwd: , roles: ["userAdminAnyDatabase"] })

  1. Create DB in MongoDB.

use orgstackdb

  1. Create user inside orgstackdb DB

db.createUser({ user: ,pwd: ,roles:[{role: "userAdminAnyDatabase" , db:}]})

  1. Install virtualenv
  2. Create new virtualenv and activate
  3. Go to project folder: cd orgstack_backend
  4. Install the requirements: pip install -r requirements.txt
  5. Create the intial migrations: From the root directory, run ./manage.py makemigrations (or python manage.py makemigrations)
  6. Migrate the intial migrations ./manage.py migrate (or python manage.py migrate)
  7. To create the superuser for your django admin panel, run command ./manage.py createsuperuser (or python manage.py createsuperuser)
  8. 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

About

Organization internal stackoverflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages