mirror of
https://github.com/Soulful-Sailer/Event-Tracker.git
synced 2026-03-29 16:16:46 -05:00
48 lines
1.1 KiB
Markdown
48 lines
1.1 KiB
Markdown
## Dependencies
|
|
- node.js
|
|
- npm
|
|
- postgresql
|
|
|
|
## How to install
|
|
Install postgres, create a user for the program to use, and create a data base with 2 tables for it to use:
|
|
```sql
|
|
CREATE TABLE sections (
|
|
id serial PRIMARY KEY,
|
|
name VARCHAR (100),
|
|
);
|
|
```
|
|
```sql
|
|
CREATE TABLE events (
|
|
id serial PRIMARY KEY
|
|
name VARCHAR (100),
|
|
sectionId integer references sections(id),
|
|
starttime timestamp,
|
|
endtime timestamp,
|
|
people text,
|
|
description text
|
|
);
|
|
```
|
|
Then create the section entries:
|
|
```sql
|
|
INSERT INTO sections (name) VALUES ('accepted');
|
|
INSERT INTO sections (name) VALUES ('proposed');
|
|
```
|
|
```sh
|
|
cd /opt
|
|
git clone https://github.com/Soulful-Sailer/Event-Tracker/
|
|
cd Event-Tracker
|
|
npm install
|
|
cp event-tracker.service /etc/systemd/system/.
|
|
cp config-template.json config.json
|
|
```
|
|
Edit config.json and add your database details.
|
|
Then start the server with `systemctl start event-tracker.service`
|
|
|
|
## Screenshots
|
|
### Main Page
|
|

|
|
### Add Event Page
|
|

|
|
### Edit Event Page
|
|

|