- Create a
.env
file as shown in.env.example
- Create database in postgresql and write the info in
.env
file. - Create a virtual environment.
virtualenv venv
If you don't have
virtualenv
, install it first.pip install virtualenv
- Activate virtual environment.
- Git Bash
source venv/Scripts/activate
- Windows Powershell / CMD
cd venv/Scripts activate cd ../..
- Ubuntu
source venv/bin/activate
- Git Bash
- Install all required libraries
pip install -r requirements.txt
- Run migrate command.
python manage.py migrate
- Run the project
python manage.py runserver
The backend will be running on port 8000 i.e http://localhost:8000
- Open another terminal and go to frontend folder.
cd frontend/
- Run
npm install
to install any packages that is available as a dependency in package.json, all in one go. - Now Run
npm start
to run the app in the development mode. - Open http://localhost:3000 to view it in the browser.
- Run
npm run build
to build the app for production to thebuild
folder. The build is minified and the filenames include the hashes.