Using following:
- Node LTS (v18)
- npm (v9)
If you are using NVM you can also use
nvm useto get correct version.
For development:
- Eslint extended from
airbnbconfiguration.
In the project directory, you can run:
Start dev server and runs the app in the development mode.
Builds the app for production to the dist folder.
Builds the app in development mode to the dist folder. Used mainly by Travis to run testcafe tests.
Runs the app by starting node server using build files.
Launches Jest test runner.
Launches TestCafe test runner and performs browser tests on headless chrome.
Launches the application using node dist command and then launches TestCafe test runner in headless mode. Mainly used by Travis CI.
For development:
- Make sure npm packages are installed by running
npm installin project root. - Make sure you have environment variables set.
.env.exampleshould have all required values so you can copy it to.env. - Then you can start development server using
npm run dev. Which watches files and updates on code changes.
To run in production mode:
- Make sure npm packages are installed by running
npm installin project root. - Make sure you have environment variables set.
.env.exampleshould have all required values so you can copy it to.env. - Build files by running
npm run build - Then you can just run the app with
npm start