The REST API for Where the fuck are my books?
- Node 12+
- A running instance of MongoDB
- Clone this repo
- Run
npm install
in the repo directory - Ensure you have a Mongo server running
- Ensure the mongo connection string in the config is correct
- Run
npm run watch
npm run build
Runs the TypeScript compilernpm run rebuild
Removes thedist
directory and runs the TypeScript compilernpm run watch
Starts the server in watch mode, i.e. it will restart when a change is made to a.ts
file.npm run pretty
Runs the Prettier code formatter to check for issues. Will output a human-readable error if errors are foundnpm run pretty:fix
Runs Prettier and fixes any issues that are found.npm run postinstall
A post-install script that runs to update the config from the JSON file.
This repo is set up with Git hooks such that you cannot commit broken code. If you encounter an error when trying to commit, run npm run pretty
and correct the errors.
Dependencies may change, so always run npm install
when changing branches or pulling.