https://github.com/vuki656/dice-betting-api
https://github.com/vuki656/dice-betting-api
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vuki656/dice-betting-api
- Owner: vuki656
- Created: 2024-02-24T10:34:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-24T22:51:46.000Z (over 1 year ago)
- Last Synced: 2025-04-06T21:14:12.150Z (6 months ago)
- Language: TypeScript
- Size: 395 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dice Betting GraphQL API
## Running the server
1. Make a copy of `.env.example` in `.env`
2. Run `yarn` to install deps
3. Run `yarn database:setup` to create a postgres in docker
4. Run `yarn database:migrate:up` to migrate the database
5. Run `yarn generate:types:graphql:dev` to generate TS types based on GraphQL types
6. Run `yarn dev` to start the server in dev mode## Running tests
(Do all steps for running the server except starting the server)
1. Run `yarn generate:types:graphql:test` to generate TS types based on GraphQL test operations
2. Run `yarn test` to run tests## Potential Improvements
- Share `findByPkOrThrow` between models