This is open source project for the Realtime Chat Application using Node.js, Express, Socket.io, MySQL, Sequelize ORM.
- Install Node.js
- Install Mysql (I recommend MariaDB with Xammp Server) database and create database names as rcwa
- Clone repository
- cd into backend folder
- Download firebase service account json file and add it to backend folder
- create .env file and add following variables (replace values with your own values)
-
FIREBASE_CREDENTIALS_PATH=filename # firebase credentials path APP_PORT=8000 # app port DB_HOST=localhost # database connection host DB_USER=root # database username DB_PASS=secret@123 # database password DB_NAME=express-sequelize-api # database name DB_DIALECT=mysql # database dialect DB_PORT=3306 # database port
- Install dependencies
- Run backend with
-
npm run dev
Name | |
---|---|
Sushant Zope |