Chatcord is an implementation of Brad Traversy's application Chatcord with some added features:
- Authentication.
- Users can create their own rooms.
- Messages and rooms are stored.
- Users can search room messages.
- Room messages are indexed to make search queries efficient.
Use node package manager to install required node modules
npm i
-
Express Express is a minimal and flexible Node.js web application framework.
-
Sequelize Sequelize is a promise-based Node.js ORM that we'll use to handle the Postgresql database.
-
Passport Passport is an authentication middleware for Node.js that we'll use to handle user authentication.
Use your own database credentials in config/database.js
To run the server, execute:
npm start
Or, to run the server in development mode using nodemon, execute:
npm run dev