Skip to content

Commit

Permalink
Merge pull request #14 from ILostMyMedic/readme
Browse files Browse the repository at this point in the history
chore: Update installation instructions and add environment variables…
  • Loading branch information
ILostMyMedic authored May 18, 2024
2 parents 39b8a07 + 02f8124 commit 11f2c6f
Showing 1 changed file with 72 additions and 4 deletions.
76 changes: 72 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,83 @@
# Quiz on Twitch
<!-- description of the project -->
QuizOnTwitch is an interactive quiz platform designed specifically for Twitch streamers.


<!-- install -->
## Installation
The project is split into 2 parts, the `./client` and the `./server`.
We will go over installation separatly.


<!-- getting start? start the project -->
### Client
1. Install packages
```sh
cd ./client
npm install
```
2. Create `.env` file inside the `./client` root directory.
3. The `./client/.env` file should follow the following example:

```
REACT_APP_AUTH0_DOMAIN=<your Auth0 domain>
```

4. Run the application by the npm scripts:

from root:
```sh
npm run dev-local-client
```

<!-- versions -->
from `./client`:
```sh
npm run dev
```

### Server
1. Install packages
```sh
cd ./server
npm install
```
2. Create `.env` file inside the `./server` root directory.
3. The `./server/.env` file should follow the following example:
```
NODE_ENV="development"
PORT=<express port>
SOCKET_PORT=<socket.io port>
MQ_PORT=<message queue port>
MQ_URI=<message queue uri>
<!-- Support me / credits -->
MONGO_URL=<MongoDB uri>
```

4. Run the application by the npm scripts:

from root:
```sh
npm run dev-local-server
```

from `./server`:
```sh
npm start
```


## Versions
| Version | Library |
|---------|--------------|
| v5.2 | Vite |
| v18.2 | ReactJS |
| v5.2.2 | Typescript |
| v20.5 | NodeJS |



## Third-party setups

### Auth0
#### Twitch
### MongoDB

> ###### Bugs with 💜 by ILostMyMedic

0 comments on commit 11f2c6f

Please sign in to comment.