Skip to content

Manager Dashboard API is the robust backend foundation for a comprehensive management platform. Designed to be scalable and efficient, this API provides all the necessary endpoints for handling users, tasks, data analysis, and more. The primary goal is to create a secure and reliable data source for the upcoming front-end interface...

Notifications You must be signed in to change notification settings

VitorPio7/Manager_dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

46 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Manager Dashboard API

About the Project

Manager Dashboard API serves as the backend foundation for a management platform. Its main goal is to provide secure and well-structured endpoints to support a future front-end interface (planned with React + TypeScript). It’s designed to handle large amounts of product and user data with scalability and security in mind.


✨ Key Features

  • Secure authentication using JWT (register and login).
  • Full CRUD for users (create, read, update, delete).
  • Scalable architecture ready to manage other resources (e.g., products, clients, projects).
  • Clear route and controller structure to simplify front-end integration.
  • Focus on scalability and best practices.

πŸ› οΈ Technologies

  • Node.js
  • Express.js
  • (Planned/expected) MongoDB with Mongoose
  • JSON Web Tokens (JWT)
  • (Planned) TypeScript for future improvements

πŸ“‚ Project Structure (overview)

Manager_dashboard/
β”œβ”€ backend/
β”‚  β”œβ”€ controllers/       # business logic for endpoints
β”‚  β”œβ”€ models/            # Mongoose models (users, products, etc.)
β”‚  β”œβ”€ routes/            # route definitions
β”‚  β”œβ”€ middleware/        # authentication, validation, and error handling
β”‚  β”œβ”€ utils/            # configuration files 
β”‚  β”œβ”€ app.js   # main server entry point
β”‚  └─ package.json
β”œβ”€ .gitignore
└─ README.md

βš™οΈ Requirements

  • Node.js (LTS version recommended)
  • npm
  • MongoDB (local or Atlas) β€” if using another database, update the data layer accordingly.

πŸ”‘ Environment Variables (example)

Create a .env file in the backend root directory with the following values:

PORT=3000
MONGO_URI=mongodb+srv://<user>:<password>@cluster0.mongodb.net/manager_dashboard?retryWrites=true&w=majority
JWT_SECRET=your_secret_key_here
SendGrid=your_secret_key_here

Modify variable names and values as needed.


πŸš€ Installation & Run Instructions

  1. Clone the repository:
git clone https://github.com/VitorPio7/Manager_dashboard.git
cd Manager_dashboard/backend
  1. Install dependencies:
npm install
  1. Set up your .env file (see the previous section)

  2. Run in development mode:

npm run dev
# or
node index.js
# or
npm start

βœ… Best Practices

  • Validate input using express-validator or similar.
  • Implement centralized error handling middleware.
  • Use helmet, cors, and a rate limiter in production.
  • Keep a clean separation of concerns (controllers, services, repositories).

πŸ“„ License

You may include an open-source license such as MIT. If not already included, consider adding a LICENSE file to the repository.


πŸ“¬ Contact

For questions or suggestions, please open an issue in the repository.

About

Manager Dashboard API is the robust backend foundation for a comprehensive management platform. Designed to be scalable and efficient, this API provides all the necessary endpoints for handling users, tasks, data analysis, and more. The primary goal is to create a secure and reliable data source for the upcoming front-end interface...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors