gabriel-cheng / flask-rest-api

Creating a Rest API with Flask and Mysql.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

status

FLASK REST API WITH MYSQL

About the project

The project is a small CRUD system that is connected to the MySql database, being able to perform the main request methods GET, POST, PATCH and DELETE.

Content

🔑 Endpoint access

• Base URL:

http://localhost:5500

Installations and testing

📋 Prerequisites

It is essential that you have Python on your machine to run the application.

🔧 Setting the ambient for run the application

1°- Make a clone of the repository:

$git clone https://github.com/gabriel-cheng/flask-rest-api

2°- Inside the cloned directory, runthe following command to generate the virtual environment:

$python -m venv venv

3°- Run the following command to start your virtual environment:

$venv\Scripts\activate

4°- To install all dependencies, run the command:

$pip install -r requirements.txt

Tools

🛠️ Built with

  • Python - Programming language used in the project.
  • Flask - Framework used to develop the API.
  • MySQL - Database used for storage data.

About

Creating a Rest API with Flask and Mysql.