Skip to content

lucashamaguchi/sample-project

Repository files navigation

sample-api

Main Dependencies and Requisites

  • Python 3
  • Flask

Running Locally

Set the environment variables (following the env.example) or create a file named .env with them in the project root folder.

Option 1 - With Docker

On the terminal:

docker-compose up

Option 2 - Python virtual env

Instantiate a new virtual environment with your favorite tool.

Install everything you need:

pip install -r requirements.txt

Before running the project you'll need to add these environment variables:

export FLASK_RUN_PORT=5000
export FLASK_APP=sample_api.app

If you want to run the project on debug mode also add this environment variable:

export FLASK_ENV=development

On the virtual environment, Finally start the project with either:

flask run

or

python sample_api/app.py

or

sh entrypoint-dev.sh

Tests

To run the tests simply run:

pytest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published