Keep track of your meals calories
Next.js 9, antd, Node, PostgreSQL demo app—written in TypeScript with raw sql.
What's implemented:
- Authentication and ACLs
- CRUD meals and users
- Node.js (tested on
v10
) - PostgreSQL >=
11.3
npm install
npm run build && npm run start
Init a db, create the tables and insert some dummy data.
npm run db:setup
npm test
You can login, by default with:
- An admin user → login:
[email protected]
, password:meals
- A regular user → login:
[email protected]
, password:meals
- A manager → login:
[email protected]
, password:meals
When creating an account—to confirm the provided email addres—a confirmation link is printed to the server stdout. This is to simulate the link normally sent to user mailbox. Same for password reset.