This is a project built using React.js and Vite as the frontend, aiming to provide services such as user login, registration, user information and password modification, as well as purchasing used phones.
important note: Backend code is in other repository. Here is the link.
To install the required dependencies, run the following command in the project root directory:
npm i
To start the project, run the following command:
npm run dev
This will run the project in development mode.
The project will run locally and listen on port http://localhost:3000/.
For production mode,run the following command:
npm run build
- Phone images are stored in the
/public/images
directory. /src
is the folder that contains the logic and UI of the pages./src/components
contains the component files./src/pages
contains the files categorized by pages./src/stateManagement
contains files for managing global state./src/utils
contains utility files./src/utils/fetch.js
is used for managing GET and POST requests./src/utils/Router.jsx
is used for managing frontend page routing.
/src/main.jsx
is the root file of the project.
/src/utils/fetch.js
is used for managing GET and POST requests./src/utils/Router.jsx
is used for managing frontend page routing./src/main.jsx
serves as the root file to manage global UI, routing, and state.
This project uses React as the frontend UI library and is developed using Vite. You can create new components and pages in the /src/components
and /src/pages
directories as needed, and configure routing and global state management in /src/main.jsx
.
- axios: Axios is a simple promise based HTTP client for the browser and node.js.
- chakra-ui: Chakra UI is a simple, modular and accessible component library that gives you the building blocks you need to build your React applications.
- react-router: React Router enables "client side routing".
- jotai: Primitive and flexible state management for React.
- react-icons: Include popular icons in your React projects easily with react-icons.
- sweetalert2: A BEAUTIFUL, RESPONSIVE, CUSTOMIZABLE, ACCESSIBLE (WAI-ARIA) REPLACEMENT FOR JAVASCRIPT'S POPUP BOXES.
- SWR: React Hooks for Data Fetching
- Vite: Next Generation Frontend Tooling.
To build and deploy the project, use the following command:
npm run build
Thanks to all the members and contributors for their efforts on this project!
Chao Li personal github Group member
Haoyu Hu Group member
Shengwen Ye Group member
This project is licensed under the MIT License. For more information, please see the LICENSE file.
Made with ❤️ in 🇦🇺 🇨🇦 🇨🇳