Giter Club home page Giter Club logo

got_api's Introduction

GoT_API

Description

As we are fans of Game of Thrones, we would like to have an application that can show the great houses of the Seven Kingdoms with a few members. The application will have two distinct entities: houses and members. Each house represents a family: Stark, Lannister, Baratheon, etc) and members must belong to a house - Ned Stark belongs to House Stark.

Functionality:

The API must include CRUD (Create Remove Update Delete) operations for both entities with validation - you can’t leave members without a house! When fetching a house, the API should also be able to return all its members and when fetching a member the API should return the data of the house (s)he belongs to.

FrontEnd Result

Backend GraphQL API

Starting backend

1 - Create virtual environment to keep our dependeciens isolated and avoid packages conflicts

python3 -m venv venv

2 - activate virtual env

 ubuntu/Mac -> "source venv/bin/activate"
 Win -> ".\venv\Scripts\activate"

3 - Install DJango

 $ python -m pip install Django

4 - Install Graphene

$ pip install graphene-django

5 - Install corsheaders to request from different domain than the one that served the web page

pip install django-cors-headers

5 - Output a file to save/track our current packages

$ pip freeze > requirements.txt

Later we can install the same packages from it using : pip install -r requirements.txt

got_api's People

Contributors

izzypt avatar

Watchers

 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.