# Entity API
This repository contains the source code for the Entity API.
## Description
The Entity API is designed to manage entities with CRUD operations (Create, Read, Update, Delete).
## Installation
1. Clone the repository:
```bash
git clone https://github.com/khaledhelmyg/entity.git
```
-
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.env
file in the root directory. - Define environment variables like PORT, APP_HOST, NODE_ENV, MONGO_URI, MONGO_URI_TEST, etc.
- Create a
-
Run the dev server:
npm run dev
-
Start the server:
npm start
- POST /entity: Create a new entity.
- GET /entity: Get all entities.
- GET /entity/:id: Get an entity by ID.
- PUT /entity/:id: Update an entity by ID.
- DELETE /entity/:id: Delete an entity by ID.
- you can find the postamn file for more guid on config folder
- Node.js
- Express.js
- MongoDB
- cors
Contributions are welcome! Please follow the Contributing Guidelines.