zbigniewzolnierowicz / washr

A social network written for Firebase with Angular.

Home Page:https://washrsocial.web.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Washr

What is it?

Washr is my personal social media project. I got tired of Facebook's terrible web app. (You'd think the creators of the most popular front-end framework would know a thing or two on how to write responsive websites and about feature parity and why feature disparity is bad, but this isn't a place for that sort of rant.) But at the same time, I realized that I really like the way Facebook is structured. I want the end goal of Washr to be a Facebook clone, while stripping the unnecessary Facebook features and throwing in some features from places like 4chan (the layout of the post and (in the future) the way you can reference other people's comments), regular forums (thread-reply layout) and some other ideas from social media. At the same time, I don't want it to grow too out of control. For example, I don't think I'll be implementing any sort of messaging system, instead, I'd love to rely on something like XMPP, but I'm also really interested in things like WebSockets and GAH, THERE'S TOO MANY COOL THINGS TO LEARN, AND I'M JUST ONE MAN!

Anyways, this project is also an exercise in using as little external libraries as possible (no pre-built components! No Tailwind, no Bulma, and, heaven forbid, no Bootstrap!)

TODOs

  • Move the form outside of the post list
  • Add a detailed thread viewer
  • Make the background something like #262a2b
  • Make a separate scss for storing colors
  • Add an option to toggle whether the user wants to see NSFW content or not
  • Implement lazy loading of replies
    • NOTE: Only kind of implemented?
  • Made the security rules better
  • Design the page with Adobe XD
    • Designed the post component
  • Add more ways to log in
    • Added logging in via e-mail
  • Implement displaying of videos
    • Replace the image tag with either an image or a video tag, depending on the type.
    • Add a function that generates a thumbnail for the uploaded video
  • Change up the colors
  • Implement push notifications
  • Add some pins for the admin, mod, and significant people
  • Add more user details
  • Add the ability to like or dislike posts
  • Add licenses
  • Make more post lists (i.e.: list of posts for people the user follows)
  • Implement lazy loading of posts
  • Make the page a11y-compliant
  • Add a list of recent posts to profile view
  • Add a function that updates every post when a user updates their profile
  • Move state management to NgRx
  • Implement date formatting with moment.js
  • If coming from a link, and the user is not logged in, redirect to login prompt, then back to the page they were trying to view
  • Add SSR via Angular Universal
    • Add actual SSR by Angular Universal
    • Move the web app from Firebase Hosting to Google App Engine
  • Rewrite the image overlay to use the Overlay from @angular/cdk
    • DO LATER @angular/cdk overlays are terribly documented

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

IMPORTANT!

For some reason, Firebase Auth guards from AngularFire don't play well with production builds. For the meantime, deploy development builds (no --prod flags)

Deploy

Run firebase deploy to deploy everything.

About

A social network written for Firebase with Angular.

https://washrsocial.web.app


Languages

Language:TypeScript 59.0%Language:SCSS 27.4%Language:HTML 11.2%Language:JavaScript 1.7%Language:CSS 0.7%