This is a sample Fastify Node.js project demonstrating the usage of Redis, MySQL with Sequelize ORM, and following the MVC architecture.
- Node.js (v12 or higher)
- MySQL database
- Redis server
-
Clone the repository:
git clone https://github.com/EsrafilElahi/redis-nodejs
cd your-repo npm install
-
Configure the database:
Rename the config/db.example.js file to config/db.js. Update the database, username, and password fields in the db.js file with your MySQL database credentials.
3. Start the application:
npm start
The server will start on http://localhost:3000