A REST API developed with Node.js using the Express framework and MongoDB as the database. The project includes CORS request support, including OPTIONS preflight handling, and a flexible database connection setup.
- REST API: Structured routes under the
/apiprefix. - CORS Security: Custom configuration to allow requests from different origins, supporting the methods
HEAD,GET,POST,PATCH,DELETE, andOPTIONS. - Dynamic Connection: Supports loading the MongoDB connection string through environment variables or command-line arguments.
- Node.js - JavaScript runtime environment.
- Express - Web framework for Node.js.
- Mongoose - Data modeling library for MongoDB.
Before starting, make sure you have Node.js and a MongoDB database installed or configured, either locally or through MongoDB Atlas.
# Clone the repository
git clone https://github.com/luf3ds/API---JavaScript.git
# Navigate to the project folder
cd API-JavaScript
# Install dependencies
npm install
# Run the project
npm startLuis Felipe Dias de Souza
Software Development student focused on Full Stack Development, databases, and software engineering. Passionate about building scalable applications and continuously improving technical skills through hands-on projects.
- GitHub: https://github.com/luf3ds
- LinkedIn: https://www.linkedin.com/in/luis-felipe-dias-s-155b84378/
- Email: lufeds@outlook.com