Skip to content

agt-ru/secret-message-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secret message app

An app for sharing secret messages between registered users via link and password.
Live version: https://agt-ru-secret-message-app.herokuapp.com/

Stack:

  • Frontend: React / Redux / Bootstrap
  • Backend: Node.js / Express / MongoDB: users and messages + encrypted fields

Usage:

Home screen:
screenshot
First, click on Register and sign up a new user: screenshot
Then, log out:
screenshot
Register a second user: screenshot
You will be redirected to Create Secret Message screen.
Write a secret message, choose a password and a user to send the secret message to, then click on Submit: screenshot
You will be redirected to your profile screen with a list of secret message links sent to or created by you.
You can also edit your user here: screenshot
Log out and then sign up as the first user: screenshot
Go to your profile: screenshot
You can see a secret message link from the second user.
Mind that links are sorted by date ascending.
Click on a new secret message url: screenshot
To view the secret message, you must enter the password provided by the second user elsewhere: screenshot
You can copy or delete a secret message upon accessing it.
Deleted message will be removed for both users.

.env

NODE_ENV = development
PORT = 5000
MONGO_URI = your mongodb uri
JWT_SECRET = abc123
SOME_32BYTE_BASE64_STRING = SOME_32BYTE_BASE64_STRING
SOME_64BYTE_BASE64_STRING = SOME_64BYTE_BASE64_STRING

Install Dependencies (frontend & backend)

npm install
cd frontend
npm install

Run

# Run frontend (:3000) & backend (:5000)
npm run dev

# Run backend only
npm run server