The Website of the ATec of the GRB. It is implemented in Vue and with Vuetify in the frontend and with MongoDB and Express in the backend.
- install the latest node version
- install mongodb and mongosh
- run
npm run build
in both folders - create a new folder and copy the content of the
lib
folder in thebackend
in it - create a new folder
public
in this new folder and copy the content ofdist
(frontend
) in it - create a
.env
file like:
DISCORD_TOKEN = <Discord-Bot-Token>
DISCORD_APPLICATION_ID = <Application-Bot-Token>
DISCORD_DEFAULT_CHANNEL = <Discord-Channel-ID>
DISCORD_EVENT_CHANNEL = <Discord-Channel-ID>
DISCORD_REMINDER_CHANNEL = <Discord-Channel-ID>
PORT = <PORT>
DB_URL = <DB-URL>
DB_NAME = <DB-Name>
SESSION_SECRET = bar
JWT_SECRET = foo
PUBLIC_DIR = <path_to_public_dir>
- insert an admin with mongosh into the
users
collection. likeinsertOne( username: "admin", permissionLevel: "admin", password: <bycrypt-hash-10-rounds>, contactAdress: <email-adress>,})
- copy the package.json and install all node-modules
- run your server
- login with your created account
The user types extend eachother, a user < technician < admin. "locked" is a special case.
- Change Password
- create new event
- view events
- participate on them on the discord server
- manage users
- delete events
The user exists, but can't login (blocked). No permissions
- create a new event
- view events
- manage users
- /register Register own account.
- /userinfo return the contactAdress of a user
- Send msg on new event
- Participate on events.