- System tested only on Ubuntu
-
Install Node.js
curl --silent --location https://deb.nodesource.com/setup_6.x | sudo bash - sudo apt-get install --yes nodejs
-
Install npm
sudo apt-get install npm
-
Install Gulp
Gulp is providing command line tools for building themed versions of the library with just the components you need.
sudo npm install -g gulp
-
Creates and activates virtual environment
-
Install the Python dependencies
pip install -r requirements.txt
-
Change the permission on execution.sh to make it executable
chmod
-
Run the execution.sh to run the rest api and genie application
./execution.sh
-
Installs the dependencies and development dependencies
npm install
This command will install the dependencies and development dependencies inside package.json, and package-lock.json is the cache file which generated during the build.
-
Runs the app in the development mode.
npm start
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console. -
Launches the test runner in the interactive watch mode.
npm test
-
Builds the app for production to the
build
folder.npm run build
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
/home
/username
/genie_revamp
/build
/genie_production
/build
index.js
package.json
...
- Deploy React App by
npm install --only=dev && npm install && npm run build
inside React App Foldergenie_revamp
- Copy the folder
(/build)
inside genie_revamp folder) which is generated by the deployment to directorygenie_production
bycp -r ./build ./genie_production/
- Install dependencies inside
genie_production
, change directory to genie_production, and typenpm install
- Run the app in the background to create the zombie process,
npm start &