This is the boilerplate for a comprehensive platform, built with Flask and React.
- Docker & Docker Compose
- Python 3.9+
pipfor installing Python packages- Postgres Database
-
Install Python Dependencies: Open your terminal in the project root (
card_platform/) and install theclicklibrary for the setup script:pip install click python-dotenv
-
Configure Environment Variables: Run the interactive setup script. It will securely prompt you for your secret keys and create the necessary
.envfile for the backend.python setup.py configure
-
Build and Run the Application: Use Docker Compose to build the images and start the frontend, backend, and database containers.
docker-compose up --build
- The Frontend will be available at
http://localhost:3000 - The Backend API will be running at
http://localhost:5000
- The Frontend will be available at
-
Initialize the Database: Once the containers are running, open a new terminal window and run the database setup command from the
setup.pyscript. This executes the migration commands inside the running backend container.python setup.py db-init
The application is now fully set up and running!
/backend: The Flask API./frontend: The React user interface./setup.py: A command-line utility for configuration and database management./docker-compose.yml: Orchestrates all the services.