mrjvs / backend-for-frontend-test

Quick simple backend for testing frontend interviewing candidates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚡Poster

Quick simple backend for testing frontend interviewing candidates. An API server to make posts!

🔥Tech stack

  • Fastify
  • @neato/config
  • Prisma

🧬Development

Create an .env file at /.env with these contents:

PST_DB__FILE_PATH_URL=file:./dev.db

Then finally, spin up the dev server:

pnpm i
pnpm dev

Tip

You must be running NodeJS 20 and use pnpm for the package manager.

🥔Command cheatsheet

  • npx prisma migrate dev - run migrations or create one
  • npx prisma migrate deploy - run migrations for production
  • npx prisma migrate reset - reset database with seeding
  • pnpm dev - run the development server

About

Quick simple backend for testing frontend interviewing candidates

License:The Unlicense


Languages

Language:TypeScript 91.0%Language:JavaScript 6.8%Language:Dockerfile 2.2%