Skip to content

plsein/restondb-service-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestOnDB-Service-Python

This is a Python based business layer plug & play service that provides dynamic / automatic REST and GraphQL APIs on any relational database by using the RestOnDB-RESTQL-Python as underlying service. It uses the Flask Micro Web Framework with GQL and JWT. Check the postman collection available under /docs folder for API documentation.

Getting started

First you'll need to get the source of the project.

# Get the example project code
git clone <GIT URL>
cd service-api/

It is good idea (but not required) to create a virtual environment for this project. We'll do this using virtualenv to keep things simple, but you may also find something like virtualenvwrapper to be useful:

# Create a virtualenv in which we can install the dependencies
virtualenv env
source env/bin/activate

Now we can install our dependencies:

pip install -r requirements.txt

Now the following command will setup the database, and start the server:

./app.py

Now head on over to http://127.0.0.1:8000/graphql and run some queries!

About

Python API Service to use on top of RestQL (RestOnDB-RestQL-Python) database service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages