JSBerry is open source modular simple architecture for building Node.js applications.
JSBerry is not a framework. It's a solution for creating applications using any frameworks, modules and plugins.
git clone https://github.com/Dugnist/jsberry project
cd project
npm i
If you wanna use express as default framework - you need to run this script to install "express" dependencies:
npm run install-express
And finally - start your application:
npm start
If you wanna install another framework instead of "express" - you can check Modules and plugins store.
Also you can check src/core/config/index.js
to set key "framework"
to your framework name (default "express").
npm start
- run application with development modenpm run prod
- run application with production modenpm run inspect
- run application with node debugger (dev mode)npm run check
- run npm modules vulnerabilities checker (npm i nsp -g
)npm run protect
- run npm modules vulnerabilities checker (npm i snyk -g
)npm run install-express
- install all dependencies for default express module
Check default Dockerfile for the line RUN npm run install-express
if you use another framework instead "express".
To build simple Docker jsberry image:
sudo docker build -t `$user`/jsberry .
To run build:
sudo docker run -p 8080:8000 -d `$user`/jsberry
To restart container automatically:
sudo docker run -dit --restart unless-stopped `$user`/jsberry
To remove unused (:) images use:
sudo docker rmi $(sudo docker images -f "dangling=true" -q)
Run npm run inspect
and open this url in browser:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9229/${uuid}
where "uuid" - debug session id from console.
OR:
Install extension nodejs-v8-inspector and launch it on 9229 port.
You can check our ROADMAP and propose new features.
For general help using JSBerry, please refer to the official documentation. For additional help, you can use ask question here:
Dugnist Alexey
Code and documentation copyright 2017-2018 JSBerry. Code released under the MIT license.