Skip to content

fsegouin/vesta-api

Repository files navigation

Build Status

vesta-api

API pour le projet VESTA

Releases

Stable version available at Heroku: https://vesta-api.herokuapp.com/explorer/

Notes

This current version is made for development purposes only and needs a few tweaks to be used as production. Indeed, a boot script has been written (vesta-api/server/boot/01-create-model-instances.js) to insert random data (users & cartoparties) in order for the developers to work quickly and efficiently.

If you would like to use Vesta as production, please make sure you wipe your mongodb database and then create an admin user. If any user is already added, the boot script will be skipped; or you could simply delete the boot script.

File server used for pictures can be found here: https://github.com/fsegouin/vesta-fileserver

Installation

Step 1 : Clone this repo

Run the following command line in Terminal (Protip: use iTerm2):

$ git clone git@github.com:fsegouin/vesta-api.git

Step 2 : Install nvm

$ curl https://raw.githubusercontent.com/creationix/nvm/v0.21.0/install.sh | bash

Step 2 : Get the latest v0.10.x release of node

$ nvm install 0.10
$ nvm use 0.10

Step 3 : Install project dependencies

$ cd vesta-api
$ npm install

Step 3 : Install MongoDB

Depends on your OS. Go to mongodb.org.

Step 4 : Launch vesta-api

Do not forget to start mongodb:

$ mongod

Start the API:

$ slc run

Go to http://localhost:3000/explorer/

If you need SSL support, please switch go feature-ssl branch.

About

API pour le projet VESTA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published