Giter Site home page Giter Site logo

lorenagubaira / django-rest-hello Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 4geeksacademy/django-rest-hello

0.0 0.0 0.0 136 KB

Installing Django+REST to create API using django (Boilerplate + Quick Tutorials)

Python 97.58% Dockerfile 2.08% Procfile 0.34%

django-rest-hello's Introduction

API Starter Template (Python & Django REST)

A django-rest boilerplate for 4Geeks Academy students. It features ready-for-deployment on heroku instructions.

Open in Gitpod

Features

  • Ready to deploy to heroku in just 1 minute (for free).
  • 100% compatible with gitpod.

1) Install any default packages (similar to npm install when using javascript) and get inside your recently created python envirnoment

$ pipenv install

2) Run migrations

  1. $ pipenv run migrate Run database migration
  2. $ pipenv run start Run the server

What next?

Your python API should be running smoothly. You should read the docs for tutorials.

You can go ahead and add/update the following files:

  • api/models.py to include more tables/entities into your database.
  • api/urls.py to include more endpoints and match them with views
  • views.py to specify wich methods will apply to each endpoint (GET, POST, PUT, DELETE)

Aditional Tutorials

Packages Being Used (Documentation)

Deploy your project to Heroku

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

Contributors

This template was built as part of the 4Geeks Academy Coding Bootcamp by Alejandro Sanchez and many other contributors. Find out more about our Full Stack Developer Course, and Data Science Bootcamp.

django-rest-hello's People

Contributors

alesanchezr avatar charlesharper avatar vicks1008 avatar guensie avatar jwalters221 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.