Giter Site home page Giter Site logo

express_with_mysql's Introduction

Express GameData

Development Environment Setup

  1. Install Node.js and npm: Node.js Download
  2. Install MySQL: MySQL Download
  3. Install MongoDB: MongoDB Download
  4. Install RabbitMQ: RabbitMQ Download

Project Setup

  1. Install dependencies: npm install
  2. Start the server: npm start

POSTMAN DOCUMENTATION LINK

https://documenter.getpostman.com/view/23544751/2s9YkgBjWQ

For sql Set up

In case of MAC, the Step:1- install mysql from official website

Step 2- Set path of mysql in the bash profile

nano ~/.bashrc Add the following line at the end of the file:

alias mysql=/usr/local/mysql/bin/mysql

than save and exit restart the terminal

step 3 - source ~/.bashrc for updating the bash by new written lines

step 4- use mysql server via- mysql -u root -p

For RabbitMQ

Step 1: brew install rabbitmq and npm install amqplib

Step 2: to check installation of RabbitMQ

brew info rabbitmq

Strep 3: to run the rabbitmq server

brew services start rabbitmq

Or, if you don't want/need a background service you can just run:

CONF_ENV_FILE="/opt/homebrew/etc/rabbitmq/rabbitmq-env.conf" /opt/homebrew/opt/rabbitmq/sbin/rabbitmq-server

Step 4: replace env file with running connection URL and other configuration

Step 5: Start RabbitMQ Server:

Ensure RabbitMQ server is running on your machine.

node eventSubscriber.js

This script will listen for events and log them to the event.log file.

Run the Application:

Ensure your Node.js application is running (use node server.js or any method you prefer). Register a new user through the registration endpoint. Check the logs in the terminal where the eventSubscriber.js is running. You should see the log for the user registration event.

express_with_mysql's People

Contributors

mehulmina064 avatar

Stargazers

Pushpander Singh Tanwar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.