Skip to content

luf3ds/nodejs-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-rest-api

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.


🚀 Features

  • REST API: Structured routes under the /api prefix.
  • CORS Security: Custom configuration to allow requests from different origins, supporting the methods HEAD, GET, POST, PATCH, DELETE, and OPTIONS.
  • Dynamic Connection: Supports loading the MongoDB connection string through environment variables or command-line arguments.

🛠️ Technologies Used

  • Node.js - JavaScript runtime environment.
  • Express - Web framework for Node.js.
  • Mongoose - Data modeling library for MongoDB.

📦 How to Install and Run the Project

Requirements

Before starting, make sure you have Node.js and a MongoDB database installed or configured, either locally or through MongoDB Atlas.

Step by Step

# 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 start

👨‍💻 Author

Luis 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.

About

RESTful API built with Node.js, Express, and MongoDB, featuring dynamic database connections, CORS configuration, environment variables, and CRUD operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors