This repository is dedicated to the 'Sistemas Web II' course project.
Group members: Khalid Belkassmi E.H., Elena Yunxin Cores Smith, Enrique Collado Muñoz, Jesús Marín Sánchez, Pablo Garay Pérez, Yolanda Llop Pellisa.
The goal: Create a comprehensive RESTful API using Node.js that integrates with MongoDB, a non-relational database. The API will support both JSON and XML message formats, enabling flexible data exchange.
What are we building: A Sneakers API
The Chosen Stack: Node.js & Express, MongoDB as the database, with Typescript as the language.
-
Copy the contents of
.env.example
to a new.env
file with the command:cp .env.example .env
-
Follow these steps:
First, install dependencies:
npm install # or yarn install # or pnpm install # or bun install
Then run (dev mode) - Start the development server.
npm run dev # or yarn dev # or pnpm dev # or bun dev
This will launch the server on port 8080 (
http://localhost:8080/
)
To compile for production deployment and start the server :
npm run build && npm run start
# or
yarn build && yarn start
# or
pnpm build && pnpm start
# or
bun run build && bun run start
This project is licensed under the MIT License - see the LICENSE file for details.