Skip to content

🚩 Learn Socket.IO πŸ–₯️ πŸ’¬ comingBackToProgramming[3] 🏁

Notifications You must be signed in to change notification settings

xvferdy/simple-chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

simple-chat-app

This repo was created for learning purposes and one of the #Coming Back To Programming activities that started on September 24 2021…

πŸ“Table of Contents

🌍 About the Project

Very simple chat app where people with unique ID send messages to each other in the same room. In the frontend we're using react and deploy it on netlify and for the server we're gonna host it on the heroku.

Overview πŸ‘“

πŸ‘€ Built With

πŸ“₯ Getting Started

Prerequisites

File Structure Overview

simple-chat-app
β”œβ”€β”€ client
β”œβ”€β”€ server
β”œβ”€β”€ .gitignore
└── README.md
Client
./client
client
β”œβ”€β”€ node_modules
β”œβ”€β”€ public
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ assets
β”‚   β”œβ”€β”€ hooks
β”‚   β”œβ”€β”€ stylesheets
β”‚   β”‚   β”œβ”€β”€ css
β”‚   β”‚   └── scss
β”‚   β”œβ”€β”€ App.js
β”‚   β”œβ”€β”€ Chat.js
β”‚   └── index.js
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
Server
./server
server
β”œβ”€β”€ node_modules
β”œβ”€β”€ index.js
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
β”œβ”€β”€ Procfile
└── router.js

πŸ“¦ Installation

npm install -g sass
npm install
npm start

Run Locally

client/src/App.js
const socket = io.connect("http://localhost:8000");
// const socket = io.connect("https://server-simple-chat-app.herokuapp.com");
server/index.js
origin: "http://localhost:3000",
// origin: "https://simple-chat-app-xvferdy.netlify.app",

About

🚩 Learn Socket.IO πŸ–₯️ πŸ’¬ comingBackToProgramming[3] 🏁

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published