Daily Quotes
Daily Quote is a full-stack web app that delivers inspiring quotes every day. Users can browse,send,comment and save their favorite quotes, and even submit their own. Built with EJS, Node.js, Express, and MySQL. In this project I'm fully focusing on understanding Backend ,Server Side Rendering and Backend server logics with Node.js,Express and some third part libraries. For Frontend I simply using EJS and Vanilla Javascript and CSS for styling.
Key Features
Quote of the Day – Display a new quote daily, fetched from an API or database.
User Authentication – Users can sign up/log in to save their favorite quotes.
Quote Categories – Users can filter quotes by motivation, success, love, etc.
Like & Save Quotes – Users can like and save quotes to their personal collection.
Random Quote Generator – Generate and display a random quote on demand.
API Integration – Fetch quotes from third-party APIs like Quotable API or FavQs.
Admin Panel – Allow admins to add/edit/delete quotes.
Social Sharing – Users can share quotes on social media platforms.
🎨 Front-end:
EJS (Embedded JavaScript Templates) – For rendering dynamic content on the server.
Vanilla JavaScript – For client-side interactivity.
CSS (or SCSS if preferred) – For styling the UI.
HTML5 – For structuring the front-end pages.
🖥️ Back-end:
Node.js & Express.js – For handling API requests and user authentication (express)
MySQL (with Sequelize ORM) – To store quotes and user data (mysql2, sequelize)
JWT (JSON Web Tokens) – For secure authentication (jsonwebtoken)
Bcrypt.js – For hashing passwords securely (bcryptjs)
EJS (Embedded JavaScript) – For server-side rendering (ejs)
Body-parser & Cookie-parser – For handling request data and cookies (body-parser, cookie-parser)
Dotenv – For managing environment variables (dotenv)
Nodemon – For automatic server restarts during development (nodemon)
CORS (cors) – To handle cross-origin requests if you plan to have a frontend.
Problems & Challenges
| Title | Status | Difficulty Level | Date |
|---|---|---|---|
| How to pass a data to external ejs file ? | solved | easy | Feb 16, 2025 |
| How to send JsonWebToken using EJS Engine | solved | easy | Feb 15, 2025 |
| req.body is empty | solved | easy | Feb 13, 2025 |
| Issue: req.user Might Be Undefined | solved | easy | Feb 10, 2025 |
| Cannot read properties of undefined (reading 'token') | solved | easy | Feb 3, 2025 |