A backend service for providing quotes through an API, supporting user authentication, subscription plans, and PayPal integration for subscription upgrades. It is built with Node.js, Hono, Prisma, MongoDB, JWT and paypal.
- User Authentication
- Subscription Plans Management
- Fetch a random quote
Once the server is running and you have added quotes to the database, you can start making requests to the API.
curl -v -X POST http://localhost:3003/sign-up \
-H 'Content-Type: application/json' \
-d '{
"name": "Ahma"`,
"email": "exmaple@email.com",
"password": "password",
}'
{
"token": "eyJhbG...",
"apiKey": "UqyNtusL-KA0ribVFM5Zwo"
}
curl -v -X GET http://localhost:3003/v1/quotes?key=UqyNtusL-KA0ribVFM5Zwo
{
"text": "Imagination is more important than knowledge.",
"categoryName": "fun",
"author": "Albert Einstein"
}
This project is licensed under the MIT License.