Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express.js API Template with MongoDB

A template for creating APIs with Express.js and MongoDB.

Prerequisites

Before running this application, ensure you have the following installed:

  • Node.js
  • MongoDB

Installation

  1. Clone the repository
  2. Navigate to the project directory
  3. Install dependencies: npm install
  4. Set up MongoDB:
    • Ensure MongoDB is running locally or provide the MongoDB connection string in the configuration.

Configuration

  • Update the MongoDB connection string in config.js with your MongoDB server details.

Usage

  1. Start the server:
  2. The API will be available at http://localhost:3000.

Endpoints

Example Endpoint

  • GET /api/example: Returns a list of examples.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/improvement).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature/improvement).
  6. Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

template for api CRUD operation in mongo db and expressjs

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages