A full-stack CRUD application built from the ground up with Node.js and Express. This platform is designed to allow mentors and experienced individuals to share advice, insights, and guidance with a community of learners.
You can view and interact with the live, deployed version of the project here:
https://mentorship-blog.onrender.com
(Note: The initial load may take up to 50 seconds as the free server instance spins up.)
This application includes the full range of CRUD (Create, Read, Update, Delete) functionality:
- Create: Easily write and publish new posts through a dedicated form.
- Read: View all posts on a clean, responsive card-based layout.
- Update: Edit existing posts to correct typos or add new information.
- Delete: Remove posts that are no longer needed.
- Data Persistence: All post data is stored in a permanent, cloud-hosted MongoDB Atlas database, ensuring no data is lost on server restarts.
- Responsive Design: Styled with Bootstrap for a great user experience on both desktop and mobile devices.
- Backend: Node.js, Express.js
- Frontend: EJS (Embedded JavaScript templates), Bootstrap 5, CSS3, HTML5
- Database: MongoDB Atlas (managed with the Mongoose ODM library)
- Deployment: Render
To run this project on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/arshalik1111-design/mentorship-blog.git
-
Navigate to the project directory:
cd mentorship-blog -
Install dependencies:
npm install
-
Set up Environment Variables: Create a file named .env in the root of the project and add your MongoDB connection string:
DATABASE_URL=your_mongodb_connection_string_here
-
Run the application (for development):
npx nodemon index.js
The server will start on
http://localhost:8080.
- User Authentication: Implement user accounts to associate posts with specific authors.
- Image Uploads: Allow users to upload an image along with their text-based posts.
