Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nsarrazin/react-flask-template

A template for starting projects with react & typescript on the front-end plus flask and socketio on the backend. Supports docker deployment and a dev environment.
https://github.com/nsarrazin/react-flask-template

docker flask gunicorn nginx python react socket-io template typescript websocket

Last synced: 17 days ago
JSON representation

A template for starting projects with react & typescript on the front-end plus flask and socketio on the backend. Supports docker deployment and a dev environment.

Awesome Lists containing this project

README

        

# A template for working with react, flask & socketio
## Purpose
This repo contains a simple template for starting projects using the following stack :
- **React** & **Typescript** on the front-end
- **Flask** & **socketio** on the backend
- Docker with **docker-compose** and a **gunicorn** web server + **nginx** for deployment purposes.

## Installation
This project requires a working conda installation for the backend as well as npm for the client. For deployment docker and docker-compose are also needed.
```
git clone [email protected]:nsarrazin/react-flask-template.git
cd react-flask-template
npm install
```
### Development
This starts the server on http://localhost:3000/ with debug mode and it supports auto-reload for both front and backend.
```
npm run install:dev
npm run start:dev
```
### Docker
This starts the react app on http://localhost:8000/web/ using gunicorn and nginx for deployment purposes.
```
npm run build:docker
npm run start:docker
```