Giter Site home page Giter Site logo

restful-api's Introduction

Installation and run

Download this repo and delete db.sqlite(if present)

open terminal in the folder where app.py is located (usually shift + right click -> open powershell for windows) and type :

pip install -r requirements.txt

In the same or new powershell type python and press enter to open python and type:

from app import db
db.create_all()
exit()
python app.py

image

In your folder there will be a new file db.sqlite

image

Docker (for those who don't wanna run locally )

for Docker users run:

docker pull netkap/tr2

docker run -dp 0.0.0.0:5000:5000 netkap/tr2

(for some port 5000 is busy just change the first port to somehting else ex- docker run -dp 0.0.0.0:5005:5000 netkap/tr2)

RESTful

Restful API for products.

Go to Localhost/apidocs for docmentation. for example http://localhost:5000/apidocs/ or http://127.0.0.1:5000/apidocs/

ex

This RESTful API runs Flask server , uses SQLALCHEMY as DataBase Toolkit also Marshmallow is used for object serialization and deserialization. SWAGGER UI for API Documentation

Further Scope:

Adding authentication

Set CI CD pipelines

Deploying to web

restful-api's People

Contributors

netkap avatar

Stargazers

 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.