This Node.js application uses the Express.js framework and Sequelize ORM to create a user management system. It provides RESTful API endpoints for user-related operations such as user creation, login, profile management, and user administration by administrators.
The application uses Sequelize ORM to interact with a relational database. Ensure that you have a relational database (e.g., MySQL, PostgreSQL) set up.
The dbConnection.js file contains the Sequelize database connection setup. The application synchronizes the models with the database on startup.
The application uses Sequelize to define models for the database. Each model corresponds to a database table:
npm install
npm start
The server will start running on the specified port, and you should see a message indicating the successful connection to the database.
The app.js file is the entry point for the application. It configures middleware, sets up the database connection, and defines the routes.
This README provides an overview of the Node.js user management system using Express.js and Sequelize. Refer to the code and documentation for detailed implementation and customization.