Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ondiekelijah/basic-flask-api

A typical Flask API
https://github.com/ondiekelijah/basic-flask-api

flask python

Last synced: about 2 months ago
JSON representation

A typical Flask API

Awesome Lists containing this project

README

        

[![CircleCI](https://dl.circleci.com/status-badge/img/gh/Dev-Elie/basic-Flask-API/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/Dev-Elie/basic-Flask-API/tree/main)
[![Build, Test and Deploy to Azure](https://github.com/Dev-Elie/basic-Flask-API/actions/workflows/main_flaskapitemplate.yml/badge.svg)](https://github.com/Dev-Elie/basic-Flask-API/actions/workflows/main_flaskapitemplate.yml)

## Initial Set Up Instructions
### 1 .Clone the git repo and create an environment

**Windows**

```bash
git clone https://github.com/Dev-Elie/Flask-API-boilerplate.git Flask-API
cd Flask-API
py -3 -m venv venv
```

**macOS/Linux**

```bash
git clone https://github.com/Dev-Elie/Flask-API-boilerplate.git Flask-API
cd Flask-API
python3 -m venv venv
```

### 2 .Activate the environment

**Windows**

```venv\Scripts\activate```

**macOS/Linux**

```. venv/bin/activate```
or
```source venv/bin/activate```

### 3 .Install the requirements

Applies for windows/macOS/Linux

```pip install -r requirements.txt```

### 4. Initialize a database

`python db_init.py`

### 5. Run the application

`python wsgi.py`

### 6. Running tests

`pytest -v`