Eemiaa / API-CRUD-MVC-Flask-Sqlite

It is an MVC API developed in Python, using the Flask framework, SqlAlchemy (SQL object-relational mapping library) and the Sqlite database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API-CRUD-MVC-Flask-Sqlite

Status: Develooping ⏳

What's it?

It is an MVC API developed in Python, using the Flask framework, SqlAlchemy (SQL object-relational mapping library) and the Sqlite database. The API performs basic Create, Read, Update, and Remove (CRUD) functions.




How to use this api?

Environment preparation

I suggest that you create your own virtual environment for the project.

After activating the environment, run requirements.txt to install the dependencies, as follows:

$ pip install -r requirements.txt

Run the API

In the terminal and with virtualenv activated, run the following command:

$ FLASK_APP=run.py flask run

Or same:

$ python3 run.py

Thus, you will receive in the terminal the address where the API is running and its status.

Test the API

Here I am using Postman to test the requests. The collection file is the CRUC-MVC-Flask-Sqlite.postman_collections.json, have fun!

About

It is an MVC API developed in Python, using the Flask framework, SqlAlchemy (SQL object-relational mapping library) and the Sqlite database.


Languages

Language:Python 100.0%