aws-project's People
Forkers
hamadodeneaws-project's Issues
Login > Create default login user on startup
Remove useless vertical navbar and horizontal search bar
User dashboard
Dashboard -- see mockup
Role based permissions
Users should only be able to see their data (waste deliveries), login, logout, read their notifications
Admins have no restrictions
All endpoints except login are to be protected and returning proper error codes (401, 403)
Waste delivery
APIs:
POST /waste
{
"account": "account-id",
"type": "paper",
"quantity": 13
}
Should the backend calculate the date of delivery on the fly or should it be sent by the client?
Monthly cost calculator
APIs:
GET /accounts/{account-id}/cost?month={month}
returns:
{
"currency": "EUR",
"cost": 9.3,
"details": [
{ "quantity": 1, "type": "glass", "cost": 0.8 },
{ "quantity": 3, "type": "paper", "cost": 1.5 },
{ "quantity": 7, "type": "plastic", "cost": 7 }
]
}
Charts
API proposal:
GET /data?from={from-date}&to={to-date}[&account={accountId}]
[
{
"account": "{accountId}",
"date": xxxx,
"type": "plastic",
"quantity": 10
},
...
]
API for admins to create accounts
POST /accounts
{
"email": "email",
"role": "role",
"password": "pwd"
}
Result:
201 Created, json object with the created account
Write the final report
Notifications system
APIs:
GET /users/{user}/notifications
returns:
[
{
"read": false,
"date": xxxxxxx,
"type": "plastic",
"quantity": 10
},
...
]
UI Template (Menu bar, logo, site name, theme)
Template with menu bar, logo, site name
UI Login
Login screen with email, password
Admin dashboard
Admin dashboard
features:
- add users
- see aggregated statistics on waste collection
Login / session / account system
APIs needed:
POST /login
body:
{
"email": "email",
"password": "pwd"
}
reponse:
{
"email": "{email}",
"role": "admin|user",
"token": "{auth-token}"
}
Users should have one role: either admin or user
Implement Bearer Authentication
Every route except for /login
will require the header Authorization: Bearer {auth-token}
Filtering waste deliveries by date is not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.