Git Product home page Git Product logo

easin-api's Introduction

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

easin-api's People

Contributors

mpfeil avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easin-api's Issues

Anonymous Tag in Front End

In the new JSON file there is a anonymous tag.
if the user made the observation anonymous - "observed by anonymous" should be written below (or in) the picture.
if not, "observed by" USERNAME ;)

Check CORS

server.use(restify.CORS({'origins': ['*'] }));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.