2023-12-06 10:37:12 +00:00
|
|
|
# snowballtools
|
2023-12-11 14:35:34 +00:00
|
|
|
|
|
|
|
- Clone the `snowballtools` repo
|
|
|
|
|
|
|
|
```bash
|
2024-01-16 08:10:14 +00:00
|
|
|
git clone git@github.com:snowball-tools/snowballtools-base.git
|
2023-12-11 14:35:34 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
- In root of the repo, install depedencies
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn
|
|
|
|
```
|
|
|
|
|
2024-01-19 09:52:25 +00:00
|
|
|
- Build packages
|
|
|
|
|
|
|
|
```bash
|
2024-01-24 11:28:07 +00:00
|
|
|
yarn build --ignore frontend
|
2024-01-19 09:52:25 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
- Change directory to `packages/backend`
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd packages/backend
|
|
|
|
```
|
|
|
|
|
2024-01-24 11:28:07 +00:00
|
|
|
- Load fixtures in database
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn db:load:fixtures
|
|
|
|
```
|
|
|
|
|
2024-01-19 09:52:25 +00:00
|
|
|
- Start the server
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn start
|
|
|
|
```
|
|
|
|
|
|
|
|
- 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'
|
|
|
|
```
|
|
|
|
|
2023-12-11 14:35:34 +00:00
|
|
|
- Change directory to `packages/frontend`
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd packages/frontend
|
|
|
|
```
|
|
|
|
|
|
|
|
- Start the React application
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn start
|
|
|
|
```
|
|
|
|
|
|
|
|
- The React application will be running in `http://localhost:3000/`
|