Skip to content

AdsExpress/adsexpress-api

Repository files navigation

Built with Grunt

Prerequisite Technologies

Linux

  • Node.js - Download and Install Node.js, nodeschool has free node tutorials to get you started.

If you're using ubuntu this is the preffered repository to use...

$ curl -sL https://deb.nodesource.com/setup | sudo bash -
$ sudo apt-get update
$ sudo apt-get install nodejs
  • Git - Get git using a package manager or download it.

Windows

  • Node.js - Download and Install Node.js, nodeschool has free node tutorials to get you started.
  • Git - The easiest way to install git and then run the rest of the commands through the git bash application is by downloading and installing Git for Windows

OSX

  • Node.js - Download and Install Node.js or use the packages within brew or macports.
  • git - Get git from here.

Prerequisite packages

  • This currently works with grunt..
$ npm install -g grunt-cli

Alternatively, when not using grunt (and for production environments) you can run:

$ node ./bin/www

NODE_CONFIG_DIR is a directory that contains application configurations (default.json, development.json, production.json)

Then, open a browser and go to:

http://localhost:3000

Update NPM or Grunt

Sometimes you may find there is a weird error during install like npm's Error: ENOENT. Usually updating those tools to the latest version solves the issue.

  • Updating NPM:
$ npm update -g npm
  • Updating Grunt:
$ npm update -g grunt-cli

Cleaning NPM cache

NPM has a caching system for holding packages that you already installed. We found that often cleaning the cache solves some troubles this system creates.

  • NPM Clean Cache:
$ npm cache clean

Generate REST API documentation

  • Install apidoc from here apiDoc

  • Run ```bash $ apidoc -i app/routes/ -o apidoc/


* open index.html inside `apidoc` directory.

---

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 119

Languages