Skip to content

jbkoh/genie-brickified

Repository files navigation

Genie

  • System tested only on Ubuntu

Installation

  1. Install Node.js

    curl --silent --location https://deb.nodesource.com/setup_6.x | sudo bash -
    sudo apt-get install --yes nodejs
    
  2. Install npm

    sudo apt-get install npm
    
  3. 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
    

Application Execution

  1. Creates and activates virtual environment

  2. Install the Python dependencies

    pip install -r requirements.txt
    
  3. Change the permission on execution.sh to make it executable

    chmod
    
  4. Run the execution.sh to run the rest api and genie application

    ./execution.sh
    

React Execution

  1. 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.

  2. 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.

  3. Launches the test runner in the interactive watch mode.

    npm test
    
  4. 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.

Genie Production

Directory Hierarchy

/home
  /username
    /genie_revamp
      /build
      /genie_production
        /build
        index.js
        package.json
      ...

Instructions

  1. Deploy React App by npm install --only=dev && npm install && npm run build inside React App Folder genie_revamp
  2. Copy the folder (/build) inside genie_revamp folder) which is generated by the deployment to directory genie_production by cp -r ./build ./genie_production/
  3. Install dependencies inside genie_production, change directory to genie_production, and type npm install
  4. Run the app in the background to create the zombie process, npm start &

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published