All Projects → martindavid → flask-react-docker-app

martindavid / flask-react-docker-app

Licence: other
An example of using Flask, React + NextJs and Docker

Programming Languages

typescript
32286 projects
python
139335 projects - #7 most used programming language
CSS
56736 projects
Dockerfile
14818 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language
Mako
254 projects

Flask-React-Docker App

An example of web application using Flask, React + NextJS with Docker.

Getting Started

This project consists of Flask application for the backend API, NextJS for client side application and nginx as a reverse-proxy for connecting api and the front-end. This project also use docker-compose to make it easy run all of the container at once.

This application will showcase:

  • Flask application with Users and Auth endpoint
  • NextJS application that showing normal route and authenticated routes.

Prerequisites

Before you run this application make sure you have this installed in your machine:

Running Locally

To run the application locally, run this command

$ docker-compose up

Database Migration and Seed

# Run database migration
$ docker-compose exec api python manage.py db upgrade

# Run database seed
$ docker-compose exec api python manage.py seed_db

The seeder will contain sample users data:

username : admin
password : verysecurepassword

After you run above commands you can open the application from http://localhost:8080/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].