RESTful API for metal-archives.com written in NodeJS, express.
-
Make sure you have nodejs, mongodb and git installed.
-
Clone the repo:
git clone https://github.com/amiralies/metalarchives-api.git
- Install dependencies :
cd metalarchives-api
npm install
- Set env vars (do changes if necessary) :
export MONGO_URL=mongodb://localhost:27017/metalarchives
- Catch database :
npm run catchDB
- Start API :
npm start
- Done.
To generate docs follow these steps:
- Install apidoc and run it in root of repo :
npm install -g apidoc
cd metalarchives-api
apidoc -i src/routes/
-
cd to
/doc
folder in repo. -
Serve files with your desired http server.
-
Done.