dasdachs / flask-react-full-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask + ReactJS full example

This is an example ReactJs app with a Flask backend acting as a Rest API.

The app is used for inventory tracking. User can keep a list of their inventory, or they can add inventories to existing, public ones.

Develop

Dependencies

  1. The project uses Python 3.9 or higher, NodeJs 16 and Docker.

  2. We use Npm - installed with Node - and Poetry to manage Python packages and create the virtual environment. Since Poetry is not installed Install with Python, make sure to install it before starting the project.

Setup the project locally

# Clone the code
git clone https://github.com/dasdachs/flask-react-full-example .
cd flask-react-full-example

install the root dependencies to setup and run the project

npm install             # installs the root project dependencies
npm run bootstrap       # installs the package dependencies and create a virtual environment

Start the databases

docker-compose up -d    # omit the -d flag if you want to see the stdout output

Start the app

npm start               # run npm run start:server or :client to run only once part of the app

About


Languages

Language:Python 61.2%Language:TypeScript 32.1%Language:HTML 6.5%Language:Shell 0.2%