A backend application for the Xkool eShop web application. This application provides RESTful APIs to manage programs and orders for the eShop.
To get started with the Xkool eShop backend, clone the repository and install the dependencies.
bash code
git clone https://github.com/EdwinAbdonShayo/Xkool-eShop-BackEnd.git
cd Xkool-eShop-BackEnd
npm install
-
This backend app is also hosted on render at: link to render.com
-
Also, this backend is linked to the frontend at: link to frontend
-
To start the application, use the following command:
bash code
npm start
The application will run on the configured port (default is 5454). You can access it at http://localhost:5454
.
GET /
- Returns a welcome message and links to the GitHub profile and donation page.
GET /programs
- Retrieves all programs from the database.
PUT /programs/:id
- Updates a program by its ID. Requires the new data in the request body.
GET /orders
- Retrieves all orders from the database (for testing purposes).
POST /orders
- Creates a new order. Requires the order data in the request body.
GET /search?term=<search_query>
- Searches for programs based on the provided search term. Returns matching results.
cors
: ^2.8.5express
: ^4.21.1mongodb
: ^6.10.0morgan
: ^1.10.0nodemon
: ^3.1.7path
: ^0.12.7properties-reader
: ^2.3.0