quaelin / node_api_exercise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tests

Node.js API Exercise

This repo provides a basic framework for a Node.js restful API for our live coding exercise. Be sure to have this code checked out locally and have Node/npm set up prior to the interview.

Running locally

The app was built using Node.js 20.12.2

$ npm install
$ npm run db:create:tests
$ npm test
$ npm run db:create
$ npm run db:populate
$ npm start

The app will then be available at http://127.0.0.1:3000/

Working with Docker

$ cd support
$ docker-compose run --service-ports --rm --name ubuntu-node-exercise dev bash
$ nvm install

Then follow instructions above about running locally.

About


Languages

Language:JavaScript 91.7%Language:Dockerfile 8.3%