Go to file
2024-02-05 17:57:08 +05:30
.github/workflows Add github CI for running lint (#5) 2023-12-11 12:04:33 +05:30
.husky Add husky to run pre-commit lint (#3) 2023-12-08 09:59:45 +05:30
packages List latest commits from project repo in overview tab (#55) 2024-02-05 17:57:08 +05:30
.gitignore Implement monorepo with lerna (#1) 2023-12-06 16:07:12 +05:30
lerna.json Add husky to run pre-commit lint (#3) 2023-12-08 09:59:45 +05:30
package.json Update instructions and general package cleanup (#29) 2024-02-01 11:37:57 +05:30
README.md Set subdomain for project and set URL for each deployment (#52) 2024-02-05 14:56:28 +05:30
yarn.lock Set subdomain for project and set URL for each deployment (#52) 2024-02-05 14:56:28 +05:30

snowballtools

Setup

  • Clone the snowballtools repo

    git clone git@github.com:snowball-tools/snowballtools-base.git
    
  • In root of the repo, install depedencies

    yarn
    
  • Build packages

    yarn build --ignore frontend
    

Backend

  • Change directory to packages/backend

    cd packages/backend
    
  • Load fixtures in database

    yarn db:load:fixtures
    
  • Set githubOauth.clientId and githubOauth.clientSecret in backend config file

  • Start the server

    yarn start
    

Frontend

  • Change directory to packages/frontend in a new terminal

    cd packages/frontend
    
  • Copy the graphQL endpoint from terminal and add the endpoint in the .env file present in packages/frontend

    REACT_APP_GQL_SERVER_URL = 'http://localhost:8000/graphql'
    
  • Copy the GitHub OAuth app client ID from previous steps and set it in frontend .env file

    REACT_APP_GITHUB_CLIENT_ID = <CLIENT_ID>
    

Development

  • Start the React application

    yarn start
    
  • The React application will be running in http://localhost:3000/

Production

  • Build the React application

    yarn build
    
  • Use a web server for hosting static built files

    python3 -m http.server -d build 3000