Giter Site home page Giter Site logo

first_simple_django_rest_framework_project's Introduction

DRINKS

This is a simple project created to learn to use Django Rest Framework to create an API that can be consumed by any frontend. Need to learn to implement associations as this project on includes one model.

In terms of sparating concerns, instead of one views file, we can have a views directory with many modules that handle their own tasks. Then have a file name '_init_.py' that will have all the modules imported in it and acts as the entry point of the directory thus one can keep their paths in the urls.py file asthey would normally have it. Find more info here

Project Setup

  • Open a terminal / command line interface on your computer​

  • Clone the repo into your folder of choice by using the following:​​git clone https://github.com/Malcolm-G/charity-app​

  • Change directory to the repo folder:​​cd charity-app

  • (Optional) Open it in Visual Studio Code​

    code .

  • (Alternate Option) Open it in any editor of your choice.​

  • Create a virtual environment by running

    python3 -m venv venv
    
  • Activate the virtual environment:

    . ./venv/bin/activate
    
  • Install project dependencies:

    pip install -r requirements.txt
    

    Extra Info

    You can find more info on the requirements.txt here

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.