Compare commits

..

No commits in common. "issue/1" and "main" have entirely different histories.

2 changed files with 37 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
.DS_Store
database/default-content.sql
vendor
node_modules

37
TODO.md Normal file
View File

@ -0,0 +1,37 @@
# To Do
- [ ] Need to create an agent to send data
- [ ] Need to create api endpoint to handle request
- [ ] Need a new table for accounts
- Users can belong to accounts
## How will authentication work?
JWT or Oauth based tokens
## Lightweight agent
What data will the agent need to send:
1. Gather user data
2. Account id
3. Site id
The agent should be availableas a simple script.
## API Endpoints
```
/api/webhook
```
This will receive a JSON payload from the agent
It will parse the payload to store the data for later display
```
/api/dataset/{account_id}/{site_id}
```
This will provide all metrics to allow displaying
information about the account.:w
```
/api/site-list/{account_id}
```
This will provide a list of sites for a given account.
Each account can have unlimited sites. Each site has an id.