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
- Host: GitHub
- URL: https://github.com/divio/express-boilerplate
- Owner: divio
- License: other
- Created: 2019-02-27T11:14:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-05T15:28:54.000Z (about 3 years ago)
- Last Synced: 2025-01-20T09:46:42.886Z (over 1 year ago)
- Topics: boilerplate, divio-cloud, express, node
- Language: JavaScript
- Homepage: https://expressjs.com/
- Size: 217 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
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 `_.