- Create the virtual environment and activate it.
virtualenv mypython
source mypython/bin/activate
- Install the dependencies from "requirements.txt":
pip install -r requirements.txt
- Migrate the database.
python3 manage.py migrate
- Start the server.
python3 manage.py runserver 0.0.0.0:8000
You should be able to access the endpoints:
- GET / --> To get all the bookmarks saved in the DB.
- GET /<id>/ --> To retrive specific bookmark.
- POST / --> To create the bookmark.
- PUT /<id>/ To update the bookmark of the given id.
- Delete /<id>/ --> To delete the bookmark for the given ID.
Execute test.sh .