Skip to content

Commit

Permalink
Quest challenge rework (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobWrenn authored Oct 30, 2024
2 parents 0e189d6 + afc13df commit 18e1ca9
Show file tree
Hide file tree
Showing 133 changed files with 2,446 additions and 2,737 deletions.
25 changes: 1 addition & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DurHack's 'Guilds' platform, built in-house by the DurHack team (2023-present).
## Nginx Configuration
```
server {
server_name megateams.durhack.com www.megateams.durhack.com;
server_name guilds.durhack.com www.guilds.durhack.com;
location /api {
proxy_pass http://127.0.0.1:3101$request_uri;
Expand Down Expand Up @@ -58,26 +58,3 @@ server {
listen 80;
}
```

## mysql server

Make sure you are running a [mysql server](https://dev.mysql.com/doc/refman/8.1/en/installing.html)
on your machine before trying to run the project otherwise you will get connection refused errors etc.
as the javascript can't find a server to connect to on your localhost 🥲.

If your computer's `hosts` file contains `::1 localhost` (IPv6 local loopback) then you will need to use
`127.0.0.1` as the database host, as the IPv6 spec clashes with the port spec (`::1:3306` is recognised as an IPv6 address,
not an address followed by a port).

This server should also have an appropriate user with permissions to manage the database, e.g.
```sql
CREATE USER 'durhack'@'localhost' IDENTIFIED BY 'durhack';
GRANT ALL PRIVILEGES ON durhack2023megateams.* TO 'durhack'@'localhost'
```
_This follows the naming used in the `.env.local` file given above_


## environment options
- `MEGATEAMS_SKIP_EMAIL_VERIFICATION`: set to `true` to allow users to set their password without verifying email
- `MEGATEAMS_NO_MITIGATE_CSRF`: set to `true` to allow `POST/PATCH/DELETE` (etc.) requests
_without_ a CSRF hash cookie and token header.
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
"chart.js": "^4.3.0",
"chartjs-plugin-annotation": "^3.0.1",
"chartjs-plugin-datalabels": "^2.2.0",
"clsx": "^2.1.1",
"dateformat": "^5.0.3",
"eslint-config-next": "13.4.5",
"next": "^14.2.7",
"postcss": "^8.4.41",
"qrcode-scanner-react": "^0.2.3",
"react": "18.2.0",
"react-chartjs-2": "^5.2.0",
"react-component-export-image": "^1.0.6",
"react-dom": "18.2.0",
"react-hooks-use-form-state": "^0.0.1",
"react-paginate": "^8.2.0",
Expand All @@ -55,6 +55,7 @@
"sass": "^1.63.4",
"socket.io-client": "^4.7.5",
"swr": "^2.2.2",
"tailwind-merge": "^2.5.4",
"tailwindcss": "3.3.2",
"typescript": "5.1.3"
},
Expand Down
Binary file added client/public/Atlantis/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions client/public/Atlantis/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/Centre of the Earth/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions client/public/Centre of the Earth/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 0 additions & 17 deletions client/public/Cygnus/constellation.svg

This file was deleted.

Binary file removed client/public/Cygnus/icon.png
Binary file not shown.
Loading

0 comments on commit 18e1ca9

Please sign in to comment.