Serveur NodeJS principal de X-Cockpit - Nuit de l'Info 2018
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Corentin Mors 26fa885f90 Merge branch 'develop' 7 months ago
controllers Merge branch 'feature/missionController' into develop 7 months ago
models Merge branch 'feature/views' into develop 7 months ago
open_mini Add minified version of code 7 months ago
public Add final favicon 7 months ago
routes Merge branch 'feature/missionController' into develop 7 months ago
services/data_generator feat (logs): can now populate 50/50 users & camps while creating logs and some sources 7 months ago
views Add final favicon 7 months ago
.gitignore Initial commit 7 months ago Rename project and clean Readme 7 months ago
app.js Merge branch 'feature/missionController' into develop 7 months ago
gulpfile.js init express 7 months ago
package-lock.json feuille de style checklist 7 months ago
package.json Merge branch 'feature/routing' into develop 7 months ago


A cockpit for your next missions

Project structure

|-- app.js (main script to start the app)
|-- package.json (metadata and dependencies)
|-- gulpfile.js (specify files to watch)
|-- models
	|-- db.js (to connect to database)
	|-- users.js (define users contenttype)
|-- routes
	|-- index.js (specify routes for the app)
|-- controllers
	|-- index.js (for homepage)
	|-- users.js (for users contenttype)
|-- views
	|-- users (templates for users contenttype)
	|-- partials (templates called with 'include')
	|-- layout (templates called with 'extends')
	|-- something.html (any template used by Nunjucks)
	|-- ...
|-- public
	|-- assets (any css, js or img that need to be publicly accessible)


You must have nodejs and mongodb installed on your system, verify with :

node --version && mongo --version

Go into root folder and enter the following line in your terminal :

npm install

Install gulp (and associated components) :

npm install --global gulp gulp-cli gulp-rename gulp-clean-css gulp-minify

Launch project

You may start the project with

node app

or use Gulp automation so that any modifications to files will reload the app and minify assets :


Your project is accessible at localhost:3000.

About design

Various documentation