Its just a small application that allow the user can see the shared youtube videos, with un-authen user they can access the video list, they can sign up and login as logged user. With logged user they can share any post from youtube by simple paste the youtube link. They also can get a small notification with any new video shared by other logged user.
The nicest thing on this application, We use 100% Backend features on firebase, so we don't need any backend service, but i still cover all features: authentication, realtime for youtube videos and the in-app notification.
Demo Link : https://funny-movies-vanbui.netlify.app/
yarn install
with yarn or npm install
with npmyarn dev
or npm run dev
to start application in dev server locallyyarn test
or npm run test
to run the test suiteI recommend you can use directly my firebase config on the current frontend code, you don't need to create a new firebase project to test out the app, but if you really want to setup a new one, please follow these steps:
src/modules/common/firebase/firebase.ts
User can access the shared videos via home page, they don't have share button to share until they register or login
Register & login:
User can click on share button when logged
When user submit successfully, all users can see new post
When user submit successfully, all logged users receive a notificaiton about new shared post
.
src
├── ...
├── pages # Contain all main pages, the root component of each page
│ ├── my-page # My Page
├── components # Contains all common/general/layout components
├── services # HTTP service layer, the one connect with backend api
└── enums # Define all enums or const variables
└── types # Define all interface & type of the project (except the component types)
└── public # All public resources (image, svg, font...)
└── main.tsx # React entry point file (Root)
└── index.css # CSS entry point file (Root)
└── tailwind.config.cjs # Tailwind config, I configured all colors/spacing of the guideline via this file