This is the server side of a MERN (MongoDB, Express, React, Node.js) project.
- MongoDB: a NoSQL database used to store data for the project
- Express: a web framework for Node.js used for building the server-side logic and API routes
- Node.js: a JavaScript runtime used for running the server and handling server-side logic
- Make sure you have MongoDB and Node.js installed on your system.
- Clone this repository to your local machine.
- Run
npm install
to install the necessary dependencies. - Create a
.env
file in the root directory and set up the necessary environment variables (e.g.DATABASE_URL
,PORT
) - Run
npm start
to start the server.
The server exposes the following API routes:
GET /api/items
: Retrieves a list of all items in the databasePOST /api/items
: Creates a new item in the databasePUT /api/items/:id
: Updates an existing item in the databaseDELETE /api/items/:id
: Deletes an existing item in the database
This project is licensed under the MIT License.