This is a lightweight blog web application built using EJS, Node.js, Express, and Mongoose. The application allows users to create, read, update, and delete blog posts. It also includes user authentication and authorization features, allowing only authenticated users to create, edit, or delete their own posts. Installation
To use this application, you will need to have Node.js and MongoDB installed on your computer.
1. Clone this repository using 'git clone https://github.com/karlo292/lightweight-blog'
2. Navigate to the project directory using 'cd lightweight-blog'
3. Install the dependencies using 'npm install'
4. Rename .example-env to .env and add your variables
To start the server, run npm start or node app.js in the project directory. The server will start on port 3000, or the port specified in the .env file.
Once the server is running, you can access the application in your web browser by navigating to http://localhost:3000 (or the port specified in the .env file).
To create a new post go to yourwebsite.com/compose
To view a post, click on the post title on the home page. If you are the admin, you will see an "Edit" button that allows you to edit the post.
To edit or delete a post, click on the post title and then click the "Edit" or "Delete" button. You must be the admin to perform these actions.
If you want to contribute to this project make a useful feature and make a push request.
This application was created by karlo292 (https://github.com/karlo292). It is licensed under the MIT license.