BATS: Business Analytics Tagging Service
An api that lets businesses track analytics for their websites via logging tags within our database and then being able to simply query back to get information on total usage for different tags.
See Deliverable 1 for our Deliverable 1 document.
-NodeJS (Recent version) -Postman (Suggested/Optional) Clone the current master branch Run "npm install" to download all necessary dependencies within the package.json Next, run "node app.js" to start up server
POST 0.0.0.0:3000/api/tokens/ body: { "organization": "company name" }
DELETE 0.0.0.0:3000/api/tokens/
headers: {
'Authorization': Bearer 056f9979-b5bb-4741-898f-80b432461e21
,
}
POST 0.0.0.0:3000/api/tags/(name)
body:
{
"value": "metadata",
"interaction": "interaction type"
}
headers: {
'Authorization': Bearer 056f9979-b5bb-4741-898f-80b432461e21
,
}
GET 0.0.0.0:3000/api/tags/(name)
headers: {
'Authorization': Bearer 056f9979-b5bb-4741-898f-80b432461e21
,
}
GET 0.0.0.0:3000/api/tags
headers: {
'Authorization': Bearer 056f9979-b5bb-4741-898f-80b432461e21
,
}
Open frontend/index.html
and go ahead and click the sample buttons
to check the database use View All Interactions route with the following header:
headers: {
'Authorization': Bearer 056f9979-b5bb-4741-898f-80b432461e21
,
}
- Austin Marino
- Cole Bennett
- Joseph Cunningham
- Niko Kent