Node.js Boilerplate for Front-End using TypeScript and Next.js (React.js).
- JavaScript: Web programming language;
- TypeScript: JavaScript superset for typing;
- Node.js: JavaScript runtime;
- React.js: TypeScript Framework for Front-End;
- Next.js: TypeScript Framework for Front-End (React-based);
- Axios: HTTP requests tool;
- Socket.io: WebSocket library;
- Express: Robust tooling for HTTP servers;
- Zod: Schema validator library;
- Jest: Testing Framework;
- ESLint: JavaScript/TypeScript linter and formatter;
- Huksy: Git hooks tool used to check tests, format the code and the commits;
- Install project dependencies
npm install
- Check the logs;
- Test the dependencies and execution locally;
- Run automated tests;
- If necessary, merge with a hotfix on git;
- Rebuild the project and restart the service;
- Copy dotenv file
cp .env.local ./.env # copy development local example
source ./.env # load envs on shell session
npm run mock-dependencies # start external service mock
npm run start:dev # start application in development mode
- localhost:3001 - Application Interface
/
- Index Page
- localhost:4000 - Mocked Back-End Page
- Remove Next
- Update Launch Settings
- Concepts
- Application State
- Redux
- Context API
- Fetch API
- UseState, UseEffect, UseContext
- Rendering
- Static Site Generation
- Client-Side Rendering
- Client-side Fetching
- Server-Side Rendering
- getStaticProps
- getServerSideProps
- Components
- Form
- NavBar
- Toast
- DropDown
- Modal
- Image
- Header
- Scroller
- Actions
- Validations
- Requests (Http)
- Connections (WebSockets)
- Hooks
- Application State
- Tests
- Component Render Test
- Page Render Test