Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

mythril-io/flask-api

Repository files navigation

Mythril logo

Issues Chat

Description

An API built with Flask used to serve content for mythril.io.

Project setup

Setup your virtual environment and install required packages with pipenv.

pipenv shell

Create a .env file in the root folder

# Flask SQLAlchemy
SQLALCHEMY_DATABASE_URI= "mysql+mysqlconnector://username:password@localhost:port/database"
SQLALCHEMY_TRACK_MODIFICATIONS = False

# Flask Praetorian 
PRAETORIAN_SECRET_KEY = "top secret"
PRAETORIAN_CONFIRMATION_SENDER = "no-reply@mythril.io"
PRAETORIAN_CONFIRMATION_URI = "http://localhost/verify"

# Flask Mail
# A free service such as Mailtrap can be used for email testing
MAIL_SERVER = "smtp.mailtrap.io"
MAIL_PORT = port
MAIL_USERNAME = "username"
MAIL_PASSWORD = "password"

# S3/Digital Ocean Spaces
DO_SPACES_REGION = region
DO_SPACES_KEY = key
DO_SPACES_SECRET = secret
DO_SPACES_BUCKET= bucket

Run your Flask application.

flask run

Database setup

Instructions coming soon.

Releases

No releases published

Packages

No packages published