An open API service indexing awesome lists of open source software.

https://github.com/divio/express-boilerplate

Divio Cloud based boilerplate to develop with Express
https://github.com/divio/express-boilerplate

boilerplate divio-cloud express node

Last synced: 3 months ago
JSON representation

Divio Cloud based boilerplate to develop with Express

Awesome Lists containing this project

README

          

===================
Express Boilerplate
===================

`Divio Cloud `_ based boilerplate to develop with Express JS.

Up to date with `Express `_ **4.18.1**.

The project files have been generated using `express-generator `_.
An example database connection has been added to ``myapp/app.js`` from the Express
`guides `_.

=================
Local Development
=================

This boilerplate installs ``node_modules`` into the root of the Docker container.
To work seamless locally, you need to run *docker-compose* using the correct prefix::

docker-compose run --rm web npm install jquery --save --prefix /

And to save it to your projects directory::

docker-compose run --rm web npm install jquery --save

Otherwise you might run into unexpected issues as the ``node_modules`` folder is in the root
of the container and your project directory. Alternatively delete the ``node_modules`` folder
from the root of the container while working locally.

We are using `nodemon `_ locally to monitor changes and
restart the server automatically.

========
Database
========

The boilerplate uses ``pg-promise`` to talk to the database. A good example of the usage can be found `here `_.