Flask React Boilerplate screenshot

Flask React Boilerplate

Author Avatar Theme by Alexkuz
Updated: 10 Feb 2016
365 Stars

Categories

Overview

The Flask React Boilerplate is a production-ready and one-click deployable boilerplate for React, Webpack, Flask, and PostgreSQL. It allows for easy setup and deployment of a web application with a Flask backend and a React frontend.

Features

  • One-click production deployment
  • Simple Flask API, powered with Flask-RESTful, SQLAlchemy, and PostgreSQL
  • UI powered with React, Babel, Webpack, and React Transform HMRL

Installation

To install the Flask React Boilerplate, follow these steps:

  1. Install the following prerequisites:

  2. Clone the repository.

  3. Install the npm dependencies by running the following command in the terminal:

    npm install
    
  4. Set up the python environment and install the dependencies by running the following command:

    pip install -r requirements.txt
    
  5. Copy the .env.example config file to .env.

  6. Start the PostgreSQL service if needed.

  7. Create the database tables by running the following command:

    python manage.py create_db
    
  8. Finally, start the local server by running the following command:

    python manage.py runserver
    

Summary

The Flask React Boilerplate is a comprehensive boilerplate for setting up a web application with a Flask backend and a React frontend. It provides one-click production deployment, a simple Flask API, and an interface powered by React, Babel, Webpack, and React Transform HMRL. The installation process involves cloning the repository, installing dependencies, configuring the environment, and starting the local server. Overall, this boilerplate simplifies the setup and deployment process for web applications using Flask and React.