Serveur NodeJS principal de X-Cockpit - Nuit de l'Info 2018 https://avis-de-template.pixelswap.fr/
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' 4 months ago
controllers Merge branch 'feature/missionController' into develop 4 months ago
models Merge branch 'feature/views' into develop 4 months ago
open_mini Add minified version of code 4 months ago
public Add final favicon 4 months ago
routes Merge branch 'feature/missionController' into develop 4 months ago
services/data_generator feat (logs): can now populate 50/50 users & camps while creating logs and some sources 4 months ago
views Add final favicon 4 months ago
.gitignore Initial commit 4 months ago
README.md Rename project and clean Readme 4 months ago
app.js Merge branch 'feature/missionController' into develop 4 months ago
gulpfile.js init express 4 months ago
package-lock.json feuille de style checklist 4 months ago
package.json Merge branch 'feature/routing' into develop 4 months ago

README.md

X-Cockpit

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)

Installation

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 :

gulp

Your project is accessible at localhost:3000.

About design

Various documentation