Skip to content

amiralies/metalarchives-api

Repository files navigation

MetalArchives RESTful API

RESTful API for metal-archives.com written in NodeJS, express.

How to run

  1. Make sure you have nodejs, mongodb and git installed.

  2. Clone the repo:

git clone https://github.com/amiralies/metalarchives-api.git
  1. Install dependencies :
cd metalarchives-api 
npm install
  1. Set env vars (do changes if necessary) :
export MONGO_URL=mongodb://localhost:27017/metalarchives
  1. Catch database :
npm run catchDB
  1. Start API :
npm start
  1. Done.

Docs

To generate docs follow these steps:

  1. Install apidoc and run it in root of repo :
npm install -g apidoc
cd metalarchives-api
apidoc -i src/routes/
  1. cd to /doc folder in repo.

  2. Serve files with your desired http server.

  3. Done.