Giter Site home page Giter Site logo

nsarrazin / react-flask-template Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 403 KB

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.

License: MIT License

Python 4.21% Dockerfile 5.04% HTML 16.79% CSS 3.95% TypeScript 70.01%
react flask socket-io websocket typescript docker gunicorn nginx python template

react-flask-template's Introduction

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

react-flask-template's People

Contributors

nsarrazin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dig1nt1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.