^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This repo contains a boilerplate setup for spinning up 2 docker containers:
- A MySQL 8 container for obvious reasons
- A Python Flask container to implement a REST API
Important - you need nGrok installed
- In terminal ./ngrok http 8001
- Copy foward link to AppSmith and edit forward URL
Important - you need Docker Desktop installed
- Clone this repository.
- Create a file named
db_root_password.txtin thesecrets/folder and put inside of it the root password for MySQL. - Create a file named
db_password.txtin thesecrets/folder and put inside of it the password you want to use for thewebappuser. - In a terminal or command prompt, navigate to the folder with the
docker-compose.ymlfile. - Build the images with
docker compose build - Start the containers with
docker compose up. To run in detached mode, rundocker compose up -d.
conda create -n webdev python=3.9conda activate webdevpip install flask flask-mysql flask-restful cryptography flask-login