Skip to content

alexanderkotsev/EASIN-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EASIN-API

This is the back-end for EASIN - Eauropean Alien Species Information Network.

Technologies

Install dependencies (Ubuntu)

It is assumed that you have installed node.js (developed using 0.12.7)

Install MongoDB according to the manual.

Run for Development & Production

Edit your configuration for development in config.development.js or for production in config.production.js

Server configuration

Variable name Explanation
config.server.name Name of the server
config.server.version Version of the server
config.server.port Port on which the server is running
config.server.path Pathname for all routes

A basic configuration can be found at config.development.js.

MongoDB configuration

Variable name Explanation
config.mongo.server Name of server where MongoDB is running (e.g. localhost)
config.mongo.port MongoDB Port is running on, leave empty if default (27017) is configured
config.mongo.collection Name of Collection where to store the reports
config.mongo.dbuser MongoDB database user, leave empty if not configured
config.mongo.dbpass MongoDB database password, leave empty if not configured

After that, run the following command to install dependencies:

npm install

Then start the API process, press CTRL+C to stop:

NODE_ENV=(production||development) node index.js

Default value for NODE_ENV is development.

Or you can use forever for running the API.

License

MIT - Matthias Pfeil 2015

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%