Skip to content

prashant-80/Notification-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup the project

  • Download this template from Git Hub and open it in your favorite text editor.
  • Go inside the folder path and execute the following command:
npm install
  • In the root directory create a .env file and add the following env variables

        PORT=<port number of your choice>
    

    ex:

        PORT=3000
    
  • go inside the src folder and execute the following command:

      npx sequelize init
    
  • By executing the above command you will get migrations and seeders folder along with a config.json inside the config folder.

  • If you're setting up your development environment, then write the username of your db, password of your db and in dialect mention whatever db you are using for ex: mysql, mariadb etc

  • If you're setting up test or prod environment, make sure you also replace the host with the hosted db url.

  • Execute following command to get tables

    npx sequelize db:migrate
    
  • To run the server execute

npm run dev

About

Notification service using Rabbit MQ as message queue and Node-mailer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published