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.
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
- 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