Django REST Framework For Splttr API
This project is best ran in a virtual environment. You can use pyvenv, which comes with python 3 and greater.
First install python3+ on your machine and then download and install pip. Then from the root of the project run:
pyvenv venv- Create a virtual environment in the venv foldersource venv/bin/activate- Load the environmentpip install -r requirements.txt- Install dependencies
To run the the server use the following commands:
python manage.py migratepython manage.py runserver
You can provide a port after the runserver. However, the default is 8000.
This project can also be ran using docker. Docker is a container system meant
to run an application with the same environment it was built in. This ensures
dependencies remain the same on every system. To get started, install the
docker toolbox with your favorite package manager. On mac, run brew cask install dockertoolbox to get the tools that you'll need.
For every other system, vist docker's website for installation istructions.
To run this using docker, make sure that your docker machine is running if you
are on Mac/Windows. The command is docker-machine start default and eval $(docker-machine env default) to configure your shell. Lastly, run the command
docker compose up.
Splttr-api stores and manages the backend components to the Splltr app
- Django
- django-rest-swagger
- djangorestframework
- Markdown
- PyYAML
These are installed when the pip install command is ran.