- Node.js v12.13.0 or newer (download here)
- NPM v6.12.1 or newer (comes with nodejs)
- MongoDB v4.4.2 or newer (download here)
- Install Node.js
- Install mongoDB and configure a valid user.
- Skipping user creation for testing is ok.
- Do not configure a database for this application. It will be created automatically on first start.
- Go to the root folder of the application
cd /path/to/my/project
- Run
npm run setup
in a command line tool like CMS, Powershell or Terminal- Skip database user and database password if no database user was created
- A system user will be created at the end of configuration process
- Check the
/var/log/error.log
and/var/log/stdout.log
for errors and success messages - The application should be accessible via
<domain>:<port>
or at least vialocalhost:80
. See/var/log/stdout.log
and/var/log/error.log
for more information.
All commands are available in the root folder of the application:
npm run setup
starts the full installation of the applicationnpm run upgrade
installs new dependencies of the new copied files of the applicationnpm run config
starts the config wizard of the applicationnpm run start
starts the servernpm run stop
stops the servernpm run restart
restarts the servernpm run logrotate
rotates the logs in /var/log. Means: The newest will be renamed and the overwritten with an empty lognpm run startup [platform]
creates a autostart script for the platform or it will be auto detectednpm run unstartup [platform]
removes the autostart for the platform or it will be auto detected
[ubuntu | ubuntu14 | ubuntu12 | centos | centos6 | arch | oracle | amazon | macos | darwin | freebsd | systemd | systemv | upstart | launchd | rcd | openrc] Not supported on windows!
To configure this application, open the config.yaml
file and edit or add values of the "env" section.
For example:
APP_HOST: 0.0.0.0
APP_SECURE: false
APP_HTTP_PORT: 1337
APP_HTTPS_PORT: 1338
APP_TRUST_PROXY: false
if there are any questions about which possibilities are available,
see the ecosystem.config.js or type npm run config
After changing the config, you have to restart the server with npm restart
npm run dev
npm run build
npm run lint
npm run dev:serve
npm start