https://github.com/szykol/quizmous
Anonymous Quiz web app
https://github.com/szykol/quizmous
Last synced: 3 months ago
JSON representation
Anonymous Quiz web app
- Host: GitHub
- URL: https://github.com/szykol/quizmous
- Owner: szykol
- License: mit
- Created: 2020-03-25T19:02:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T04:02:30.000Z (over 3 years ago)
- Last Synced: 2025-09-26T09:37:07.489Z (9 months ago)
- Language: JavaScript
- Size: 445 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# quizmous
Anonymous Quiz React app
This project uses [Quizmous-API](https://www.github.com/szykol/quizmous-api) for backend-database communication.
General API code documentation can be found [here](https://szykol.github.io/quizmous-api/).
## Prerequisties
You need to have docker and docker-compose installed on your system
Get api submodule
```
git submodule update --init --recursive
```
## Quick start
```
docker-compose up -d
```
Which builds and spawns API, Postgres and React app in their own containers.
## Launch the app in browser
Open up the browser and type localhost:3000
## Env variables
You can also launch docker-compose with bunch of env variables set:
### Attach quizmous_api without starting API
```
# this launches detached react app and quizmous_api container without starting up the API
API_TTY="true" API_ENTRYPOINT="/bin/bash" docker-compose up
# then you can attach to quizmous_api and launch API manually or connect to postgres
docker attach quizmous_api
# on container
./run.py # launches API
psql # connects to Postgres container
```
### Attach to bash in react container
```
REACT_ENTRYPOINT="/bin/bash" REACT_TTY=true REACT_COMMAND="" docker-compose up -d
# then you can attach to react container and launch app manually
docker attach react
# on container
npm start # launches the app
```
### Launch react tests
```
# that launches tests
REACT_COMMAND="npm test" docker-compose up react
```