rt-chat is a full-stack application built for real-time blogging and user management. It features a React frontend coupled with a Node.js/Express backend, utilizing MongoDB (Mongoose) for data storage. Authentication is handled using Passport.js with local strategy. This project is what I decided to take on, after learning some backend basics with Anson the Dev's Course on Express.js.
- Clone the repository:
git clone https://github.com/vempr/rt-chat
cd rt-chat
- Install dependencies:
npm install
-
Create a MongoDB project with a free shared M0 cluster and create a database called
rt-chat
-
Create .env file in root folder of app (...../rt-chat):
MONGODB_URI=mongodb+srv://<username>:<password>@<project-name>.bdatxt6.mongodb.net/rt-chat?retryWrites=true&w=majority&appName=<project-name>
SECRET=<your-secret>
-
Run
npm run dev
-
Have fun!
- Frontend: React, React Router, Redux Toolkit, Tailwind CSS
- Backend: Express, MongoDB, Mongoose, Passport.js
- Development: TypeScript, ESLint, Prettier, Vite, ThunderClient
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code according to the terms of the license.