API for CRUD operation
The first thing to do is to clone the repository:
$ git clone https://github.com/ejaj/assignment.git
$ cd assigment
Enable a virtual environment to install dependencies in and activate it:
$
$ source venv/bin/activate
Then install the dependencies:
(env)$ pip install -r requirements.txt
For mac users
(env)$ pip install -r requirements.mac.txt
Once pip
has finished downloading the dependencies:
(env)$ cd assigment
(env)$ python manage.py runserver
For creating Super user, you can run this command.
(env)$ python manage.py superuser
- Database: PostgreSQL
Change the database name and password from .env file
API end point and response: See the API documentation