fac22 / factube Goto Github PK
View Code? Open in Web Editor NEWA YouTube for FAC members 📺
Home Page: https://fac-tube.vercel.app/
A YouTube for FAC members 📺
Home Page: https://fac-tube.vercel.app/
Investigate YouTube API and Material UI library and how to use them in our project
Relates to #8
...it is not always working. Sometimes, I get an error about foreign key constraint 🤔
How come you aren't using SWC as your compiler? (Next says it is better)
Was there something that didn't work with SWC?
https://romansorin.com/blog/setting-up-supabase-with-nextjs-and-vercel
https://learn.foundersandcoders.com/course/syllabus/apprenticeship/full-stack-app/project/
Research and report back to the group:
Closes #3
A README on your repo can introduce the project and give an idea of what you built and how you built it.
Draft your README early and continuing to update it throughout your project. This will save you time later on, and help make sure you don't forget anything! 🐘
The apprenticeship assessment focuses on documenting projects with this structure. Following this for your in-house and Tech for Better projects will give you a good understanding of how to write project documentation.
Nice progress for the first week! ✨ 🎉 Here are a few things I noticed:
React.useState
here quite a few times. Neater to import { useState } from 'react'
.const Search = () => {}
for
attribute on this input to correctly associate the labelgetServerSideProps
, getStaticProps
etc. are normally used at the bottom of the file.I've tried not comment on the bits it looks like you're not using atm.
The menu drawer is 😙👌
Would be good to have a confirmation message that let you know that your profile has been saved successfully
I love your project board with all your user stories! Great use of labels 👌
On the homepage, it's not clear what the default sort is and you can't go back to it when you apply the liked filter
I really like how when you paste a pic url it immediately is displayed as your profile pic
For the MVP the likes will be stored in state only - potential to add video database later
Love the clean design and how each video is presented in its own card with the like
button ❤️
It's amazing how many features you've managed to add. hard work ✌️✌️✌️
Lines 7 to 14 in 78d06ea
You've got this identical bit of code for handling Supabase auth sessions in quite a few pages. Since it's likely that every page needs to know if you're logged in or not, you could put this into pages/_app.js
. This components sits "above" all other pages, so any code in here will run for every page. You could then pass the session
down as a prop to the pages:
// pages/_app.js
function MyApp({ Component, pageProps }) {
const [session, setSession] = useState(null);
useEffect(() => {
setSession(supabase.auth.session());
supabase.auth.onAuthStateChange((_event, session) => {
setSession(session);
});
}, []);
return (
<Layout>
<Component {...pageProps} session={session} />
</Layout>
);
}
I'm curious about the Catalogue component that doesn't get used anywhere. What is it? What was it? What was happening with this line?
I had to google what a video id was and where I might find it, might be good to include some examples to show what people need to put in
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.