"# crud-react-redux" for learning.
see treerOutput for details.
You can start by cloning the latest version on your local machine by running:
$ git clone https://github.com/sinnkirou/crud-react-redux.git
$ cd crud-react-redux
This will install both run-time project dependencies and developer tools listed in package.json file.
Find the .env file in the root directory. Add environment-specific variables on new lines in the form of NAME=VALUE. For more details, check dotenv. For example:
PORT=3050
Note that do not commit sensitive infomation into this file.
This command will build the app from the source files (/src
) into the output /dist
folder. As soon as the initial build completes, it will start the Node.js server (node dist/main.js
).
Note that the npm start command launches the app in development mode, the compiled output files are not optimized and minimized in this case.
$ npm run build
After running this command, the /dist folder will contain the compiled version of the app. For example, you can launch Node.js server normally by running node dist/main.js
.
$ npm run lint
$ npm run lint:fix # check the systax errors and fix all auto-fixable issues
$ npm test # Run unit tests with test coverage
$ npm run testwithoutreport # Run unit tests without without coverage
By default, Mocha test runner is looking for test files matching the test/**/*.spec.js
pattern. Take a look at test/Actions/index.spec.js
as an example.
$ npm run treer