Skip to content

A vending machine API built using Nodejs, TypeScript and sqlite3 with prisma ORM.

Notifications You must be signed in to change notification settings

MikhailWahib/vending-machine-api

Repository files navigation

Vending Machine API

Description

This is an API for a vending machine built using NodeJS, Express, TypeScript and SQLite3 with Prisma ORM.

For Documentation go to https://github.com/MikhailWahib/vending-machine-api/blob/main/DOCS.md

Install

make sure you have node, pnpm or npm, and sqlite3 installed.

Clone the repository

git clone https://github.com/MikhailWahib/vending-machine-api

Navigate to the folder

cd vending-machine-api

Install dependencies

pnpm install

Environment Setup

  • create .env file
  • copy .env.example content to .env and fill the required vars
cp .env.example .env

Database Setup

pnpx prisma migrate dev --name init

Run

Run dev server

pnpm run dev

Build

Build

pnpm run build

Start server

pnpm run start

Testing

Setup

  • create .env.test file
  • copy .env.test.example content to .env.test and fill the required vars
cp .env.test.example .env.test

Run tests

pnpm test

About

A vending machine API built using Nodejs, TypeScript and sqlite3 with prisma ORM.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published