GithubHelp home page GithubHelp logo

website's Introduction

Event Starter Kit Website

Welcome ESK project. if you don't know what ESK is please read these links link1 link2

To run this application you have to install Node 4.x or greather (get it here) and an instance MongoDB (mlab offers a free MongoDB installation)

Build tools

if you don't have installed the following tools, please run these commands:

$ npm install -g gulp
$ npm install -g typings
$ npm install -g typescript

First run

Go into the root folder and execute the following commands:

$ npm install
$ typings install

Compile from command line

This project uses Typescript, if you don't know what Typescript is, here the definition

TypeScript lets you write JavaScript the way you really want to. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. Open Source.

For more info, take a look here

To run the website as developer from command line runs this command:

$ gulp serve

To create the dist folder, run:

$ gulp

If you get some errors, please open an issue here.

Now you should get a new folder into your repo Build. Go there and run `node app.js' and everything should works (see credential section).

The output should looks like this:

screen shot 2016-03-10 at 00 29 52

Credentials

This website uses some parameters to connect to MongoDB or other services.

To get it work is important to set the appropriate environmental variables with the right values: you find the list of the needed environmental variables in the credentials.ts in src/config.

export class Mongo {
    public static ConnectionString: string = process.env.MONGODB_CONNECTION_STRING || "mongodb://<dbuser>:<dbpassword>@ds047632.mongolab.com:47632/dbname";
}

Or you can also simply configure them based on your OS. For example, with Mac OS X or Linux you will do

$ export MONGODB_CONNECTION_STRING ='mongodb://<dbuser>:<dbpassword>@ds047632.mongolab.com:47632/dbname'

you have to do this for all variables available on credentials.ts

website's People

Contributors

imperugo avatar agiorgetti avatar

Stargazers

Joshua Wiens avatar  avatar Mohamed Chorfa avatar Jamie Phillips avatar Ignacio Rivas avatar

Watchers

Simone Chiaretta avatar  avatar James Cloos avatar

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.