Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.99 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.99 KB

Social media app

A BeReal website copy



About it

This project is a template for a simply social media website built using:



How to use it

Create an account and the post! Search for your friends and see the lattest photo.



Tech specs

For login sessions I saved the user's id in cookies. I also implemented a middleware that checks if you are curently logged in and if not redirects you to the sign in page.

The users along with their posts are saved locally in a 2 json files.

All the front-end stuffs are located in views folder.

The structure for every view has the following structure:

  • view.ejs - contains the content that needs to be randered for the client.
  • view.js - is the router used to handle the /view route.
  • views.cjs - contains functions only used for that specific .ejs file.
  • All the files from above are located in the same directory view.

  • /public/view.js - will contains the code that runs on the front-end of the page.