======================= Coding-test development start===========================
To start the project:
- npm i
- npm run dev
All done, you can change code how you want - webpack will rebuild code automatically and nodemon will restart after the rebuild.
================================== Tests========================================
To create tests:
-
Use src/tests folder. Just create the folder which will contain files with *-test.js. Webpack will grab all files with such extension and start tests using mocha.js.
-
To run tests: npm test
======================== Coding-test production start===========================
To start the project in production:
- To build and start using nodejs server: npm start
- Just to build: npm build. Then you can use any node.js configuration to run the compiled project from compiled/server.js