A swagger documented back end with custom endpoints that allow users to create, read, update, delete entries for their library/wishlist,trades etc.
Built from the 4GeeksAcademy Django Python starter template here: https://github.com/4GeeksAcademy/django-rest-hello
A django-rest boilerplate for 4Geeks Academy students. It features ready-for-deployment on heroku instructions.
- It uses the latest python version (as of Oct 2018).
- Ready to deploy to heroku in just 1 minute (for free).
- 100% compatible with c9.io .
Follow these steps:
- Make sure you have python 3.6 installed, if you are using Cloud9 you can install it by typing:
$ pyenv install 3.6.6 (this step takes a while)
$ pyenv global 3.6.6
$ sudo pip install django pipenv
- Make sure your current folder is empty.
$ ls
It should show no files or folders.
- Create a new project using the 4Geeks Academy django-rest-hello template:
$ django-admin startproject <project_name> . --template=https://github.com/4GeeksAcademy/django-rest-hello/archive/master.zip --name=Procfile
Note: You can replace <project_name>
with your desired project name.
- Install any default packages (similar to
npm install
when using javascript) and get inside your recently created python envirnoment
$ pipenv install
$ pipenv shell
- Run migrations
$ python manage.py migrate
- Start the python server
$ python manage.py runserver $IP:$PORT
Your python API should be running smoothly.
If you don't have your code connected to a github repository, please do it:
$ git init
$ git add -A
$ git commit -m "Initial commit"
Then, run these 3 steps to deploy to heroku:
$ heroku create
$ git push heroku master
$ heroku run python manage.py migrate
- Working with django /admin to create superusers, add models to your admin, etc.
- Using the python shell to CRUD models, etc.
- Working with Migrations for everytime you change your model
- Using MySQL insalling and using MySQL in your application.
- Using Mongo insalling and using mongo in your application.