https://github.com/slo42/clicker-app-server
Server of my React Clicker Game
https://github.com/slo42/clicker-app-server
babel circleci docker-compose express jest nodejs-server postgresql redis typescript
Last synced: 4 days ago
JSON representation
Server of my React Clicker Game
- Host: GitHub
- URL: https://github.com/slo42/clicker-app-server
- Owner: SLO42
- Created: 2022-02-24T21:27:27.000Z (over 4 years ago)
- Default Branch: server
- Last Pushed: 2022-03-19T03:13:11.000Z (over 4 years ago)
- Last Synced: 2023-03-07T13:45:59.923Z (over 3 years ago)
- Topics: babel, circleci, docker-compose, express, jest, nodejs-server, postgresql, redis, typescript
- Language: TypeScript
- Homepage:
- Size: 1.32 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Clicker-App-Server
React Clicker Server:
[](https://circleci.com/gh/SLO42/Clicker-App-Server/tree/server)
## Docker startup:
``` npm run docker-up ```
In a separate window/tab run
``` npm run dev ```
Then go to localhost:4242/api-docs.
Under the `database` tab run the post route with
apiKey set to either the default: "basicAuth" or ``process.env.SEED_KEY``.
TL:DR: you need .env variables: so here is an example:
This is the summary text, click me to expand
> API_VERSION="v1"
> VERSION="0.1.0"
> JWT_SECRET="CoolSecret"
> GOOGLE_CLIENT_ID="0000000000-string.apps.googleusercontent.com"
> GOOGLE_CLIENT_SECRET="secret-passcode"
> SITEURL="http://localhost:3000"
> PORT=4242
> API_URL=http://localhost:4242