The application consists of Frontend Next JS to utilize Server Side Rendering, Client Side and React Framework, Routing Framework etc..
Index page, slug page is build on run time. Ideally this could be changed too static generation if we had a running service to generate the files, however only ideal for pages we know and defined and is not too dynamic.
-
NX Workspace for Mono Repo Management
- Generate and build skeletons of applications and frameworks required e.g NextJS
- Build and deploy commands
- Configuration setup for apps
- Building shared libraries which can be used for both applications
- Linting & Tests will be automatically run as part of the build process but can also be run independently.
Mockaroo - Mock generator and schema creation
Jest - Unit tests React Testing Library - js dom selector
-
React - UI components
-
NextJS - For static server side generation framework for SSR and static generation
-
Styled-components - creating components with styles
-
All of the React components are camel case, this is something developers can agree on the conventions etc..
-
TODO: styling, tests, integration tests, error handling on front end
Jest - Unit tests , helpers etc..
React Testing Library - Testings pages and components
npm install
npm run start
Open your browser and type
http://localhost:4200
npm run build
Note: Running integration tests for api service would need the service to be running
npm run test
npm run lint