Welcome to the Node Express API! This application serves as a starting point for building a robust RESTful API using Node.js, Express, and MongoDB.
To get your local copy up and running, follow these simple steps:
- Clone the repository:
git clone https://github.com/m-usmananwar/node-basics- Copy the environment configuration: Copy the contents of .env.example to create your own .env file
cp .env.example .env -
Add the required values:: Open the .env file and fill in the necessary values for your environment configuration.
-
Install the dependencies:
npm install- Start the development server:
npm run dev- Access the API: Your API should now be running on http://localhost:5001. You can test the endpoints using Postman or any other API client.
If you run into any issues, just remember: I'm a newbie too! If something breaks, just do what I do — close your eyes, take a deep breath, and hope it magically fixes itself! 😂✨