Boilerplate for setting up new React Projects running on a simple Flask webserver, built with Gulp and Watchify
-
Clone this repository with a new project name
git clone https://github.com/Eighty20/react-flask-boilerplate new_project -
Create a new repository on github or bitbucket with the same name
-
Enter the directory you just created
cd new_project -
Set the remote origin of your project to the new repository and push
git remote set-url origin https://github.com/Eighty20/new_project git push -u origin master -
Set up
git flowgit flow init -d -
Checkout the
developbranchgit checkout develop -
Set up a new python virtual environment
mkvirtualenv --python=/usr/bin/python3 training -
If your virtual environment is not immediately activated, enter it with
workon training -
Install the required python packages
pip install -r requirements.txt -
Install the required node modules
npm install
-
In a new terminal, in the project folder, run
gulpgulp -
In another terminal, start the webserver
./run.sh -
In a browser, navigate to http://localhost:5000
-
Read the documentation on each of the technologies to figure out where to go from there.
-
Clone this repository with a new project name
git clone https://github.com/Eighty20/react-flask-boilerplate new_project -
Create a new repository on github or bitbucket with the same name
-
Enter the directory you just created
cd new_project -
Set the remote origin of your project to the new repository and push
git remote set-url origin https://github.com/Eighty20/new_project git push -u origin master -
Set up
git flowgit flow init -d -
Checkout the
developbranchgit checkout develop -
Set up a new python virtual environment
conda create -n training -
Activate your virtual environment
activate training -
Install the required python packages
conda install --yes --file req.txt -
Install the required node modules
npm install
-
In a new terminal, in the project folder, run
gulpgulp -
In another terminal, start the webserver
./run.cmd -
In a browser, navigate to http://localhost:5000
-
Read the documentation on each of the technologies to figure out where to go from there.