This is a boilerplate to set up a full-stack application with:
- Frontend: React (with Vite and TailwindCSS for fast development)
- Backend: Flask (Python-based web framework)
- Docker: For containerization, local database creation and easy deployment
- Vercel: For frontend deployment
- Supabase: For PostgresSQL database hosting
This boilerplate helps quickly create an application, with an easy setup process for quick use.
Install the following:
- Docker (version 20.x or higher)
- Docker Compose (version 1.27.0 or higher)
- Clone the repository:
git clone https://github.com/keeryno4/react-vite-flask-boilerplate.git cd react-vite-flask-boilerplate - Open Docker Desktop
- Run the Boilerplate
docker-compose up --build
- Reset the local database with init.sql
docker compose down -v
- Check local database via MySQL Workbench:
- Open MySQL Workbench
- Create a connection to port 3307 with the login info
rootandpassword
- Create Vercel predeployment with
vercelor production deployment withvercel --prod
Feel free to use this boilerplate to create projects, just give me credit in the README
├── api/ # Flask backend code
│ ├── app/ # Flask app files
│ └── Dockerfile.backend # Dockerfile for backend
├── frontend/ # React frontend code
│ ├── src/ # React source files
│ ├── public/ # Public assets
│ └── Dockerfile.frontend # Dockerfile for frontend
├── database/ # MySQL database code
│ ├── database_connector # Create Supabase connection
│ ├── init.sql # SQL file to initialize local database
└── docker-compose.yml # Docker Compose configuration
└── vercel.json # Vercel configurations