Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/quaelin/node_api_exercise


https://github.com/quaelin/node_api_exercise

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

[![tests](https://github.com/quaelin/node_api_exercise/actions/workflows/tests.yml/badge.svg)](https://github.com/quaelin/node_api_exercise/actions/workflows/tests.yml)

# 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

```sh
$ 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

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

Then follow instructions above about running locally.