Skip to content

mayazeldin/AName

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL + Flask Boilerplate Project

This repo contains a boilerplate setup for spinning up 2 docker containers:

  1. A MySQL 8 container for obvious reasons
  2. A Python Flask container to implement a REST API

How to setup and start the containers

Important - you need Docker Desktop installed

  1. Clone this repository.
  2. Create a file named db_root_password.txt in the secrets/ folder and put inside of it the root password for MySQL.
  3. Create a file named db_password.txt in the secrets/ folder and put inside of it the password you want to use for the webapp user.
  4. In a terminal or command prompt, navigate to the folder with the docker-compose.yml file.
  5. Build the images with docker compose build
  6. Start the containers with docker compose up. To run in detached mode, run docker compose up -d.

For setting up a Conda Web-Dev environment:

  1. conda create -n webdev python=3.9
  2. conda activate webdev
  3. pip install flask flask-mysql flask-restful cryptography flask-login

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published