Reactor is a super tiny invoice management application. This code repository is its API
source code which has been developed by Node.js and MongoDB. Moreover, there is a Web UI for this application which is located in Reactor Web UI Repository
- express
- mongodb
- moment-jalaali
- mocha
- Install Node.js >= 8.9.3 and MongoDB > 4 on your machine
- Run
npm insatll
in your cli in the root of project to install dependencies - Make a copy of
.env.sample
and name it.env
. You must set the environemt variables on it. - Run
npm run populate-db
to make structure and default data in the db
- Run
npm run dev
- Run
npm start
In the project folder, you can run these shell commands:
It installs all npm modules that are required for running the application.
It runs the project in development watch mode.
It runs eslint to check if there is any coding error/warning.
It runs unit tests and show the result in the CLI.
It runs a node web server that serves the output and responds to HTTP requests. It is proper to run the project in production mode.