This is a web application for sending and receiving messages.
- Clone this repository in a folder. For example in
/Documents
cd Documents
git clone https://github.com/magush27/messaging-app.git
-
Now you can enter
/messaging-app
foldercd messaging-app
-
There you will see the backend folder and the frontend folder. This is the basic project structure:
- messaging-app
- backend
- server.js
- package.json
- ...
- frontend
- src
- components
- LoginForm.js
- RegistrationForm.js
- ChatWindow.js
- App.js
- ...
- package.json
- ...
Messaging-app backend made using Node.js server that exposes RESTful APIs.
-
Enter the backend folder.
cd /name-of-the-folder-where-you-cloned-the-repository/messaging-app/backend
-
Instal backend dependencies using npm
npm install
-
Run the server
npm start
React messaging-app frontend.
-
Enter the frontend folder
cd /name-of-the-folder-where-you-cloned-the-repository/messaging-app/frontend
-
Install frontend dependencies using npm
npm install
-
Run the frontend
npm start
-
Now you can enter your localhost to test this app, put this URL in your browser:
http://localhost:3000/
- You will see a Login. You need to press "Sign up" button to register your user and password.
- Once you press it, you will be redirected to the sign up form.
- After you complete it, you have to press de "Sign up" button and this will redirect you again to the Login site.
- Login with the username and password you already registered. This will redirect you to the chat window.
- Now you can chat with the registered users. If you want to test with your own users