Skip to content

Latest commit

 

History

History
115 lines (87 loc) · 4.43 KB

README.md

File metadata and controls

115 lines (87 loc) · 4.43 KB

null-jobs-backend

Null Jobs Backend Revamping: We are building Null Jobs 2.0, that will have django backend rest framework in backend and react in frontend.

Please feel free to contribute and reach out to us.

Setup

# creating virtualenv
python -m venv venv
source venv/bin/activate

# source the env file in terminal
set -a
source ./.env
set +a

# installing requirement
pip install -r requirements.txt

# install pre-commit
pip install pre-commit

# load the seed files
Directory: utils/seed
Command: `python manage.py loaddata utils/seed/filename.json
NOTE: Load the seed files only in this order
1. Company
2. Job
3. User
Because, in a recent change, we made User.job_id as a temporary field in the User model,
so in case where the User.job_id isn't present (maybe the job seeker hasn't applied to any job or isn't working yet),
so especially in such cases, loading User seed file before Job seed file can result in error.

# start the server
python manage.py runserver

Note: Swagger url will be available at http://localhost:8000/api/docs

Setting up OAuth 2.0


Test cases setup:

lets migrate the db first for testing env

python manage.py migrate --settings=null_jobs_backend.test_settings

whenever you make changes to your models, you need to create new migrations and apply them to both your development and testing databases to keep the schemas in sync

python manage.py makemigrations --settings=null_jobs_backend.test_settings

In order to run the test cases over test_db

python manage.py test --settings=null_jobs_backend.test_settings

Contributors and sponsors

All Contributors

Thanks goes to these wonderful people (emoji key):

Himanshu Sharma
Himanshu Sharma

💻 📖
Yogesh Upadhyay
Yogesh Upadhyay

🐛💻 📖
Himanshu Bhatnagar
Himanshu Bhatnagar

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

License

This project is licensed under the terms of the MIT License.