/shoppie-service

Express REST API service for the Shoppie shopping list app

Primary LanguageTypeScript

example workflow code style: prettier

Shoppie REST API service

REST API service for the Shoppie shopping list app. Includes eslint and prettier for linting/code formatting, nodemon for automatic server restarting, and Jest for testing.

Getting Started

Install dependencies

npm install

Running in development

npm run dev

Running in production

npm start

Runs on localhost:8080 by default but can be configured using the PORT environment variable. You should also be running a MongoDB server either locally or with Docker and the environment variable MONGO_URI should be set in a .env file or in your console environment

Running tests

npm test

# Watch repo
npm run test:watch

Linting

npm run lint

# fix issues
npm run lint:fix