Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasonraimondi/scratchy
A majestic monolith. My magical code playground that I can do whatever I want with.
https://github.com/jasonraimondi/scratchy
bull docker e2e-tests graphql mjml nestjs nodejs postgres tests typeorm typescript unit-tests
Last synced: 3 months ago
JSON representation
A majestic monolith. My magical code playground that I can do whatever I want with.
- Host: GitHub
- URL: https://github.com/jasonraimondi/scratchy
- Owner: jasonraimondi
- Created: 2020-08-20T06:37:02.000Z (over 4 years ago)
- Default Branch: trpc
- Last Pushed: 2022-11-17T03:15:28.000Z (about 2 years ago)
- Last Synced: 2023-03-31T16:16:30.129Z (almost 2 years ago)
- Topics: bull, docker, e2e-tests, graphql, mjml, nestjs, nodejs, postgres, tests, typeorm, typescript, unit-tests
- Language: TypeScript
- Homepage:
- Size: 4.19 MB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scratchy
## Getting Started
Boot Docker services
```bash
docker-compose up -d
```Install Dependencies
```bash
pnpm install
```The install command should also run this next generator for you in a 'postinstall' hook. This generates the prisma client for the backend, and the api client library for sveltekit. You can rerun the command with the following.
```bash
pnpm -r gen
```Next, initialize & seed the database. This creates the actual database, and runs all migrations for you. Then it runs a [seed](api/prisma/seed.ts) command for you that sets up some sample data.
Note: If you see the error `User scratchy was denied access on the database scratchy.public`, you will need to check if the postgres running on port 5432. Likely, you have multiple postgres servers running on your host machine, and the one running on port 5432 is not able to authenticate with the `scratchy` user.
```bash
pnpm db
```Start dev mode, either use overmind or look in the [Procfile](./Procfile) and use that as a starting point. You need the **api** and **web**, the generators are optional.
```bash
overmind start
```### Graphql
After booting the api, you can nav to the graphiql editor here: http://localhost:5000/graphiql