This application is developed with NextJs ReactJs Framework and use server side renderer
- Nodejs 11 or higher
- Yarn
#install dependences
yarn
#run app
yarn dev
#Open browser localhost:3000
cd docker
docker-compose up -d
#Open browser localhost:3000
#run tests
yarn test
#run tests in watch mode
yarn test:watch
#run tests with code coverage
yarn test:coverage
#run application
Note: For better debugging experience install Redux Devtools in yout chrome
Tests must be placed within the tests directory on each component
Note: Tests for page components must be within src /__ tests __/ componentName
# In the backend
NAME=VALUE
# In the frontend. Need to use prefix 'NEXT_PUBLIC_'
NEXT_PUBLIC_ANALYTICS_ID=VALUE
More information on NextJs documentation
#run tests
yarn test
# build application
yarn build
#run application
yarn start
src/
|--/components
|-- Form
|-- __tests__
|-- Form.test.tsx
|-- actions.test.ts
|-- reducer.test.ts
|-- Form.tsx
|-- actions.ts
|-- reducer.ts
|-- state-management
|-- Sagas
|-- __tests__
| -- Form.test.ts
|-- Form
Note:
- If the component does not make use of state, actions and reducer are not necessary
- If the component does not need to load data with http requests, sagas are not necessary