
Build a full-stack blog with reactjs and Supabase, enabling user authentication, post creation, and viewing with routing, state management, and deployment on Vercel.
Install NodeJS, then create a new React app named Block, open the terminal, and run npm start to view the app on localhost:3000 in VS Code.
Bootstrap Template: https://startbootstrap.com/theme/clean-blog
Create the navigation and footer as separate React components in a layout folder, export them, and import into app.js to render the top nav and bottom footer.
This quickstart guides you through creating a Supabase project, exploring database, authentication, storage, and functions, and connecting a React app using the public API key.
Set up authentication in a React app using Supabase, configure test mode email confirmation, and wire login and signup routes with React Router DOM to create a functional authentication template.
Create an auth context in a React and Supabase app to manage sign up, sign in, sign out, and auth state changes, providing a user session across the app.
Build a signup page that captures email and password with React refs, calls the auth context signup, handles errors, and navigates to the home page.
Add a sign out button to the navigation bar, wire it to the auth context signOut function, and navigate home after sign out with React Router.
Create a blog post form in a React.js with Supabase project, defining a blog table with title, description, content, and image, and post data to the server.
Add post button triggers an asynchronous add block function that collects title, description, and content from the input. It creates a UUID, uploads the data to Supabase, and navigates home.
Upload an image to a public blog image bucket in Supabase storage. Configure policies for insert, update, select, and delete; and implement an onchange uploadImage function to upload the file.
Develop the image upload flow by creating a git url function to fetch the public url from the blog image bucket in Supabase and update the post with the image.
Implement a single post view in a ReactJS app using Supabase. Pass the post ID via URL, fetch data with useEffect and useParams, and render title, description, content, and image.
Optimize a full-stack blog site by refining the navigation bar, linking the home page as my blog, and implementing conditional post creation with auth context in React Router; prepare deployment.
In This course you will learn how to Build a full-stack website using React and Supabase, and deploy it on the web using Vercel,
we will build a Blog using react and connect it with Supabase.
we will use React library to help us improve the website. be ready to discover Supabase and the services that can boost your development process, and get a good Knowledge of how to connect your backend with your front-end code.
I will be happy to answer any questions you need while taking this course.
We will cover in this course:
- Create React app and set up the app structure.
- Create a Supabase account and creating a database
- Connecting Supabase with React using Supabase library
- Convert HTML -CSS JavaScript to ReactJS
- Using ( useState - useEffect - useContext .. ) on ReactJs
- Using Supabase services ( Database - Storage - Api ...)
- Using React Router to route between pages and pass data.
- Creating add post page and inserting it to supabase table
- Crating bucket to store the Image and adding Police inside Supabase with a public URL.
- Deploy your app
... and more
Who this course is for:
developers.
Anyone who is creating dynamic websites.
Those working in React, Supabse who want to learn and develop their skills.