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
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
- create
.env
file - copy
.env.example
content to.env
and fill the required vars
cp .env.example .env
pnpx prisma migrate dev --name init
Run dev server
pnpm run dev
Build
pnpm run build
Start server
pnpm run start
- create
.env.test
file - copy
.env.test.example
content to.env.test
and fill the required vars
cp .env.test.example .env.test
pnpm test