The project utilizes Next.js + React.js + Ant Design as the front-end tech stack.
The project utilizes Node.js + MongoDB as the back-end tech stack.
JWT was used to optimize the authentication. Except the login request, every request is sent with an "Authorization" header to the server side. Only requests with correct token value set in the "Authorization" parameter will be responded. Otherwise, the page will be redirected to the login page.
In order to run this project, you need to setup the front-end and back-end environment. Here are the commands:
cd book-admin-react
npm install
cd ../book-admin-express
npm install
First of all, in order to run the project, you need to replace the <username> and <password> of the file models/index.ts with yours in the backend project.
Then you need to open two terminals to run the frontend and backend respectively.
cd book-admin-react
npm run dev
cd book-admin-express
npm start
Then you can check out http://localhost:3000 to access the project.