A site containing blogs about technologies and software development, adressed to developers.
Run npm install
to install all packages.
Run website you can:
# either start ...
npm start
# ... or start in debug mode
DEBUG=website:* npm start
# now open localhost:3000 in your browser
By default the express-generator starts off with 4 folders.
bin
The bin folder contains the executable file that starts your app. It starts the server (on port 3000, if no alternative is supplied) and sets up some basic error handling. You don’t really need to worry about this file, because npm start will run it for you. public
public
The public folder is one of the important ones: everything in this folder is accessible to people connecting to your application. In this folder, you’ll put JavaScript, CSS, images, and other assets that people need when they load your website.
routes
The routes folder is where you’ll put your router files. The generator creates two files, index.js and users.js, which serve as examples of how to separate out your application’s route configuration.
views
The views folder is where you have the files used by your templating engine. The generator will configure Express to look in here for a matching view when you call the render method.
Ressource:
TODO:
- view engine
- creating and using template
TODO:
- instructions
- links