Git Product home page Git Product logo

games-web-service's Introduction

games-web-service

Create venv: python -m venv %USERPROFILE%\PythonREST\Django01 Activate venv %USERPROFILE%\PythonREST\Django01\Scripts\activate.bat Deactivate venv (%USERPROFILE%\PythonREST\Django01\Scripts\deactivate.bat pip install django pip install djangorestframework cd /d %USERPROFILE%\PythonREST\Django01 "python Scripts/django-admin.py startproject gamesapi" era "django-admin.py startproject gamesapi" cd gamesapi python manage.py startapp games generate migration file: python manage.py makemigrations games apply migration: python manage.py migrate interactive shell: python manage.py shell launch server:python manage.py runserver curl: curl -iX GET localhost:8000/games/ httpie:http GET localhost:8000/games/ add -b for hidding header

PATCH: update single field PUT: update all fields GET: obtain info POST: create item DELETE: delete item

Get options available from the api http OPTIONS :8000/games/ pip install psycopg2 python manage.py makemigrations games python manage.py migrate DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', # Replace games with your desired database name 'NAME': 'bpyobpqw', # Replace username with your desired user name 'USER': 'bpyobpqw', # Replace password with your desired password 'PASSWORD': 'WG-948xqCS_JjV-TJfGEaxF0TpK_GJoC', # Replace 127.0.0.1 with the PostgreSQL host 'HOST': 'babar.elephantsql.com', # Replace 5432 with the PostgreSQL configured port # in case you aren't using the default port 'PORT': '5432', } }

games-web-service's People

Contributors

fercamp09 avatar

Watchers

James Cloos avatar Leonardo Eras avatar  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.