https://github.com/jwillbold/nodejs-skeleton
A nodejs template to start your project
https://github.com/jwillbold/nodejs-skeleton
bootstrap bootstrap4 https jquery nodejs pug tests
Last synced: about 2 months ago
JSON representation
A nodejs template to start your project
- Host: GitHub
- URL: https://github.com/jwillbold/nodejs-skeleton
- Owner: jwillbold
- License: mit
- Created: 2019-04-04T21:07:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-19T17:55:06.000Z (over 6 years ago)
- Last Synced: 2025-04-14T20:46:30.572Z (about 1 year ago)
- Topics: bootstrap, bootstrap4, https, jquery, nodejs, pug, tests
- Language: JavaScript
- Homepage:
- Size: 857 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## NodeJS Skeleton Project
This is my basic project for all NodeJS apps. It provides an overall file
structure to build on and includes libraries, miscellaneous files and a self
signed certificate for the localhost. Which allows for development using HTTPS
which prevents problems that occur when developing and testing with HTTP and
then hosting it on HTTPS.
Further, it focuses on building secure web apps by integrating security features
like CSP from the very beginning of development.
### Usage
Start with:
``npm install && npm start``
Then got to your browser and open: ``https://localhost:3001/``
You will have to add the certificate to the browser exceptions since it is self signed.
### Create your own key and certificate
You may want to crate your own key and self-signed certificate. You can do this with this command:
``openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out private/certs/localhost.crt -keyout private/keys/localhost.key``
### Included Libs
- Bootstrap 4.3.1
- JQuery 3.3.1
### Predefined NodeJS packages
- express
- mocha
- chai
- jquery
- pug
- sequelize
- sqlite3