- Babel to translate the written code into the javascript supported by NodeJS.
- Mocha with Chai for tests.
- Loadtest for loadtests.
- Yarn to download npm dependecies.
- Sequelize as ORM with MySQL as database with Sequelize-CLI helping to create models/migration files and execute them.
Recommended to use Node.js v6+ to run the project.
Install the dependencies and devDependencies and start the server.
$ cd smart-api
$ yarn
Want to contribute? Great!
Please, first configure ./server/src/config/database.js
file or use configured variables before running commands.
- To run the app in development mode:
$ yarn run dev
- Running the app in production mode:
$ yarn run build
$ yarn start
- Running tests:
$ yarn test
- Running loadtest:
You need to start the server and run the tests on another terminal.
$ yarn loadtest