Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trimscash/element-quiz
element quiz!!
https://github.com/trimscash/element-quiz
express quiz-game react
Last synced: 5 days ago
JSON representation
element quiz!!
- Host: GitHub
- URL: https://github.com/trimscash/element-quiz
- Owner: trimscash
- License: cc0-1.0
- Created: 2023-06-21T02:27:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-26T18:44:49.000Z (11 months ago)
- Last Synced: 2023-12-27T16:40:02.467Z (11 months ago)
- Topics: express, quiz-game, react
- Language: TypeScript
- Homepage: https://element-quiz.trimscash.mydns.jp/
- Size: 1.29 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# element-quiz
Every day Element Quiz!React, Express, prisma
# deploy
### env parameters example
```
#front/.env
REACT_APP_API_URL="http://api:4000"
REACT_APP_PUBLIC_URL="http://localhost"
REACT_APP_GTAG="G-XXXXX"
TZ=UTC
``````
#api/.env
POSTGRES_PASSWORD="passW0rd"
TZ=UTC
# TZ=Asia/TokyoFRONT_URL="http://localhost"
# This was inserted by `prisma init`:
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-stringsDATABASE_URL="postgresql://postgres:passW0rd@db:5432/mydb?connect_timeout=300"
``````
#/.env
POSTGRES_PASSWORD="passW0rd"
PUBLIC_API_URL="your server url"
PUBLIC_FRONT_URL="your server url"
PUBLIC_URL="your server url"
POSTGRES_DB="mydb"
POSTGRES_USER="postgres"
```### docker command
```
docker compose -f production.yaml up -d
```# todo
- Use styled-components
- Implement survival mode
- Design for mobile