Skip to content

πŸ’¬ Realtime chat web app example made with the MEVN stack (MongoDB, ExpressJS, VueJS, and NodeJS).

License

Notifications You must be signed in to change notification settings

practical-works/mevn-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’¬ MEVN Chat

Web JavaScript VueJS BulmaCSS SocketIO

NodeJS ExpressJS MongoDB Mongoose

Realtime chat web application example made with the MEVN stack (MongoDB, ExpressJS, VueJS, and NodeJS).

🌐 View Live Demo

Screenshot

🏁 Getting started

  1. Clone the repository:
cd somewhere
git clone https://github.com/practical-works/mevn-chat.git
cd mevn-chat
  1. Install the dependencies:
npm i
  1. Install Nodemon globally:
npm i -g nodemon`
  1. Run development database:
npm run db
  1. Run development server:
npm run server

✈️ Deployment

  1. Create and run a live MongoDB database using a service like MongoDB Atlas and get the connection string.

    The MongoDB connection string (URL) usually looks something like this:

    mongodb+srv://username:password@host-address/database-name?retryWrites=true&w=majority where username, password, host-address, and database-name are placeholders for the values provided by the service and specific to the user.

  2. Push the repository to a node server using a service like Heroku.

  3. In the remote node server:

    a. Set the environment variable CONNECTION_STRING to the obtained mongoDB connection string:

    CONNECTION_STRING=mongodb+srv://...etc

    b. Install the dependencies:

    npm i

    c. Start the server for production:

    npm start

πŸš€ Development

🏭 Environment

πŸŒ‘ Backend

πŸŒ• Frontend

  • βš›οΈ Core:
  • 🎨 UI:
  • πŸ”§ Utils:

πŸ“„ License

Licensed under MIT.