- Production: eazeease.netlify.app
-
- React + Vite
-
- Express
- PostgreSQL
- Meditation Sessions: Users can access guided meditation sessions.
- Big Red Button: Provides users with a relevant audio guide that will ease their discomfort, ranging from guided meditation and visualization practices
- User Authentication: Secure user accounts with authentication.
- Prabesh Sharma and Vasu Bhatnagar: Frontend development
- Roman Zinkevich: Backend development
- Zhiyuan Liu: Code Reviewer
-
- Endpoint:
/api/contents/:id
- Description: Embark on a mindful journey with one "content" retrieved by id from the database.
- Example:
GET https://meditationnotmedication-production.up.railway.app/api/contents/1
- Endpoint:
-
- Endpoint:
/api/sections
- Description: Explore a tapestry of "Sections," each weaving its unique story.
- Example:
GET https://meditationnotmedication-production.up.railway.app/api/sections
- Endpoint:
-
- Endpoint:
/api/sections/:id
- Description: Uncover the depth of wisdom within one "section's" treasures.
- Example:
GET https://meditationnotmedication-production.up.railway.app/api/sections/1
- Endpoint:
-
- Endpoint:
/api/users
- Description: Begin your meditation quest with a new user account.
- Example:
POST https://meditationnotmedication-production.up.railway.app/api/users
- Request Body:
{ "name": "NewUser", "password": "SecurePa$$word123" }
- Endpoint:
-
- Endpoint:
/api/users/login
- Description: Open the door to serenity by logging in if you've wandered here before.
- Example:
POST https://meditationnotmedication-production.up.railway.app/api/users/login
- Request Body:
{ "name": "ExistingUser", "password": "TheirSecretPa$$w0rd" }
- Endpoint:
-
- Endpoint:
/api/users
- Description: Peek into the mirror of self-awareness with information about the logged-in user.
- Authorization: Bearer Token Required
- Example:
GET https://meditationnotmedication-production.up.railway.app/api/users
- Endpoint:
-
- Endpoint:
/api/users
- Description: Sculpt your profile with the gentle touch of personalized changes.
- Authorization: Bearer Token Required
- Example:
PUT https://meditationnotmedication-production.up.railway.app/api/users
- Request Body:
{ "email": "MyNewEmail@gmail.com", "name": "John Doe" }
- Endpoint:
-
- Endpoint:
/api/users/password
- Description: Renew your spiritual essence by changing your password.
- Authorization: Bearer Token Required
- Example:
PUT https://meditationnotmedication-production.up.railway.app/api/users/password
- Request Body:
{ "password": "NewSecurePa$$w0rd" }
- Endpoint:
-
- Endpoint:
/api/users
- Description: Bid farewell to your account, gracefully leaving the tranquil space.
- Authorization: Bearer Token Required
- Example:
DELETE https://meditationnotmedication-production.up.railway.app/api/users
- Endpoint:
-
- Endpoint:
/api/contents/admin/:id
- Description: Craft and mold the essence of "content" data with divine precision.
- Authorization: Bearer Admin Token Required
- Example:
PUT https://meditationnotmedication-production.up.railway.app/api/contents/admin/1
- Request Body:
{ "content_name": "Content Number 5", "description": "Enhanced and refined for supreme tranquility" }
- Endpoint:
-
- Endpoint:
/api/users/admin
- Description: Ascend to the heights of awareness with insights into all users in the database.
- Authorization: Bearer Admin Token Required
- Example:
GET https://meditationnotmedication-production.up.railway.app/api/users/admin
- Endpoint:
-
- Endpoint:
/api/users/admin/:id
- Description: Bestow roles with the wisdom of the ancients upon the chosen user.
- Authorization: Bearer Admin Token Required
- Example:
PUT https://meditationnotmedication-production.up.railway.app/api/users/admin/1
- Request Body:
{ "role": "1" }
- Endpoint:
-
- Endpoint:
/api/contents/admin
- Description: Infuse the spiritual realm with new "content" as an admin.
- Authorization: Bearer Admin Token Required
- Example:
POST https://meditationnotmedication-production.up.railway.app/api/contents/admin
- Request Body:
{ "content_name": "NewContent", "description": "NewDescription", "audio": "NewAudio", "image": "NewImage", "author": "NewAuthor", "section_name": "Section 1" }
- Endpoint: