code-chimp / books-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Books API Example

Inspired by Scott Moss' API course thought I would take a stab at testing out how I would architect an API using NodeJS, Express, and Prisma.

Develop the easy way

docker-compose up -d
  • Creates and starts a database container, runs the migrations
  • API will be available at http://localhost:3000
  • Prisma Studio (database UI) will be available at http://localhost:5555

Develop the slightly harder way

  • Stand up the db ./data-scripts/setup.sh
  • Copy .env.example to .env and fill in the values (get missing values from container setup script)
  • Update the database ./data-scripts/update-db.sh
  • Start the server npm run dev

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 86.4%Language:Shell 6.8%Language:PowerShell 5.2%Language:Dockerfile 1.6%