The backend of Dino Eat Life is a Node.js API built with
- Hapi.js
- PostgreSQL running as a Docker container
- Primsa
- Hapi-Auth-JWT2
All tables for data entities are created withing prisma/schema.prisma
using Prismas declarative language for data modeling. The data model though pretty stable is still subject to changes in development.
The API provides a documentation which can be accessed via http://<base_url>/documentation
. The documentation is generated with Hapi-Swagger
/home
to fetch data related to the authenticated user and their family members or flat mates/posts
for CRUD operations on users' posts/profile
to fetch a users profile (public) or CRUD by the authenticated user/register
to register users/login
to login users and return JWTs/validate
to verify email token for email verification (still in development)