Welcome to Post a Blog!
Getting Started Follow these steps to set up and run the project locally.
Prerequisites Make sure you have the following installed:
Node.js npm (Node Package Manager) MongoDB (Make sure the MongoDB server is running) Installation Clone the repository:
bash Copy code
git clone https://github.com/your-username/project-name.git
Navigate to the project directory:
cd project-name
Install dependencies:
npm install
Configuration
Create a .env file in the root directory:
PORT=3000 MONGODB_URI=mongodb://localhost:27017/your-database-name SECRET_KEY=your-secret-key PORT: Port on which the server will run. MONGODB_URI: MongoDB connection string. SECRET_KEY: Secret key for JWT token (replace with your own secret).
Running the Application Start the server:
npm start The application will be accessible at http://localhost:3000 by default.
Usage
Customize routes and controllers as per your project requirements.
Contributing
Feel free to contribute by forking the repository and submitting pull requests.
reference
What us REST API ? https://www.youtube.com/watch?v=lsMQRaeKNDk
Happy coding! 🚀