A basic blog site built with Node.js and Express, allowing users to create and view blog posts temporarily without using a database.
- Create Post: Users can create a new blog post with a title and content.
- View Posts: All posts are displayed on the homepage, allowing users to read them.
- Temporary Storage: Posts are stored temporarily in memory and do not require a database.
To run this simple blog site locally, follow these steps:
-
Clone the repository to your local machine.
-
Install the dependencies.
cd simple-blog-site npm install
-
Start the server.
npm start
-
Open your web browser and navigate to http:https://localhost:3000 to start creating and viewing blog posts.
- Visit the homepage to view existing blog posts.
- Click on the "Create Post" link to create a new blog post.
- Enter the title and content for the post and click "Submit."
- Your new post will be displayed on the homepage.
This project uses the following npm packages:
- Express: A fast, unopinionated, minimalist web framework for Node.js.
- EJS: Embedded JavaScript templates for building dynamic web applications.
Feel free to contribute to the project. If you have any improvements or new features, please open an issue or submit a pull request.
- Fork the repository.
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a pull request
This project is licensed under the ISC License - see the LICENSE file for details.