Install nvm (Node version manager)
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
Install Node 20.10.0
$ nvm install v20.10.0
Check Node & npm versions
$ node --version
v20.10.0
$ npm --version
10.2.3
Clone this repository and install dependencies
$ git clone [email protected]:DING-1994/drp-competition-site.git
$ cd drp-competition-site
$ npm install
Start local server
$ npm run dev
# You can check the site at http://localhost:xxxx/
erDiagram
Group ||--o{ User: "group_id"
User ||--o{ Record: "user_id"
Group ||--o{ Record: "group_id"
User {
UUID id
Char username
Email email
Password Password
ForeignKey group_id
}
Group {
UUID id
Char groupname
Password grouppass
}
Record {
UUID id
Float score
DateTime scored_at
Text comment
ForeignKey user_id
ForeignKey group_id
}