This is a simple project for
BUPT College Students' Innovation and Entrepreneurship Exhibition
Displaying all the projects .
Clone the repository:
git clone https://github.com/dan-zong-hao/dcz-frontend.git
cd dcz-frontend
npm install
-
Ensure you have installed the dependencies as described in the Installation section.
-
Start the development server:
npm run start
-
Open your browser and navigate to
http://localhost:3000
.
To create a production build of the project, run the following command:
npm run build
This will create a build
folder with all the optimized files. You can then deploy the contents of this folder to your production server.
-
The frontend interface is developed using the React framework, please refer to
package.json
for the specific version -
In the folder
./src/pages
, we can see 5 folders. When we want to modify the frontend page, we can adjust the code here
./Blacklist
is to display users who have engaged in illegal activities
./Home
is the main page which shows all the projects
./Layout
controls the side bar in the Home page
./NotFound
is used to prevent users from accessing interfaces without a certain route
./Rank
shows the top ten projects with the hightest number of votes, and the vote count is pushed from the backend using WebSocket. The frontend uses echarts.
-
./src/assets
contains some sample data of projects such asid
、project name
、member
and so on. -
./src/store
is used to store some data of the user visiting this website, such as the id of the user 、the user's vote count、which projects they voted for. -
./src/utils
contains some tools we can use in the page. -
./App.js
registers the pages.
- Fork the repository.
- Create your feature branch
git checkout -b feature/YourFeature
- Commit your changes
git commit -m 'Add some feature'
- Push to the branch
git push origin feature/YourFeature
- Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.