Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/joacod/python-playground-api

Python playground Web API
https://github.com/joacod/python-playground-api

Last synced: 21 days ago
JSON representation

Python playground Web API

Awesome Lists containing this project

README

        

# Python Playground
Python playground Web API using [Flask](https://flask.palletsprojects.com/en/2.2.x/)



## Prerequisites
- [Install Python](https://www.python.org/downloads/)

## Setup
- At root of project, create a virtual environment:
- `python3 -m venv .venv` (macOS/Linux)
- `python -m venv .venv` (Windows)

- Activate the virtual environment:
- `. .venv/bin/activate` (macOS/Linux)
- `.venv\Scripts\activate` (Windows)

- Install dependencies:
- `pip install -r requirements.txt`

## Run the application
At root folder run:
- `flask --app=app run`

## Run Tests
At root folder run:
- `python -m unittest discover -p "*_test.py" -vv`