Skip to content

ganznz/mini-messaging-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Messaging App

A simple real-time messaging application built with TypeScript, Express, React, and MongoDB.

For a more comprehensive list of technologies used, see below.

Prerequisites

  • Node.js (v18 or higher)
  • npm
  • MongoDB Atlas account

Installation

1. Clone the repository

git clone https://github.com/ganznz/mini-messaging-app.git
cd mini-messaging-app

2. Install dependencies

npm install

3. Create environment files

Create .env in the server directory and paste the following:

NODE_ENV=dev ## dev | prod
MONGODB_CONNECTION_CREDENTIALS=<db_username>:<db_password>
MONGODB_CLUSTER_NAME=<cluster_name> ## e.g. if Cluster0, then "cluster0", if My Cluster then "my-cluster"
CLIENT_URL_DEV="http://localhost:5173" ## dev client url
CLIENT_URL_PROD=<your_production_url> ## prod client url

Create .env in the client directory and paste the following:

VITE_ENV=dev ## dev | prod
VITE_API_URL_DEV=http://localhost:8080 ## express server dev url. requests redirected here
VITE_API_URL_PROD=<your_production_url> ## prod server url

Running the application in dev mode

Run the following cmds from the root directory.

1. Start the server

npm run dev-server

2. Start the client

npm run dev-client

Open your browser and navigate to http://localhost:5173

Technologies used

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published