This simple Express.js based blog application is a platform where users can view posts, and administrator users can add, edit, and delete posts.
These instructions will help you run and develop the application on your local machine.
You need to have Node.js and MongoDB installed on your local machine to run this project.
-
Clone this repository to your local machine:
git clone https://github.com/baristaner/blog-app-api.git cd blog-app-api
-
Create .ENV file in blog-app-api:
MONGODB_URL=YOUR_URL_HERE PORT=YOUR_PORT_HERE SESSION_SECRET=YOUR_SESSION_SECRET_HERE
-
Install the required dependencies by running the following command in the terminal:
npm install
-
Start the application by running the following command::
npm start
-
Express.js
-
MongoDB (Mongoose)
-
Fork this repository and clone it to your local machine.
-
Create a new branch: git checkout -b new-feature
-
Commit your changes: git commit -am 'Added a new feature'
-
Push to your branch: git push origin new-feature
-
Open a Pull Request!