Next.js & Identity (auth) Tutorial #2 - Installing Identity & Deploying
Key Takeaways
Installs the Netlify Identity package locally and sets up continuous deployment
Full Transcript
all right then so we've got our site up and running and we can see in a browser we can preview that the next step is to work with netlify identity so install a package into our project and then hook it up with netlify for that to work so before we do that i just wanted to point out one thing in the starter site i made an error on this import right here it shouldn't be a capital l for link it should be lowercase when we import it and then just uppercase when we use the component that was in the navbar now i've updated the starter files so when you use them you shouldn't see this don't worry about that i just wanted to point it out because i did show you this component as well in the last lecture anyway now we've done that let's install the netlify identity package in this project for it to work so the way we do that is using npm and i'm going to do that in a terminal down below so npm install then it's netlify hyphen identity hyphen widget so just press enter to install this package [Music] all right then so now we've installed that package the next thing we need to do is enable the identity service for our project on netlify now that's quite hard to do at the minute because we've not yet deployed this site to netlify it doesn't exist on netflix yet so that's what we need to do first of all and to do this we're going to be using continuous deployment with github now if you know nothing about github or git at this point it would be a good time to maybe go and check out my tutorial series all about git and github the link to that is going to be down below in the video description then come back otherwise a lot of this stuff might go over your head so the first step is to create a github repository so head to github and create a new repository i'm going to call this gaming hyphen vibes and then down here this can be public or private it really doesn't matter and then click on create repository so it's going to create this repo for us then next we need to grab this line down here so we can set the origin of our local repository so to do that i'm going to open up the terminal and i'm going to paste this in so git remote add origin then the repo we just created press enter to add this and then once we've done that i'm going to say git status just to check that we're on the main branch which we are then i'm going to say git add just to add that little change i made to the nav bar a minute ago so git add and then i'm going to say git commit and then a message and this message is going to be initial commit like so press enter and then i'm going to push it up to the main branch so origin main like so so once we've done that hopefully over here if we refresh now we should be able to see that project which we can awesome so we have this project on github now the next step is to allow netlify to bring this in and deploy this site for us so in order to do that first of all head to netlify.com and sign up for a free account once you've done that you're going to go to your dashboard and from here click on sites so we want to create a new site from git so click on that button and then click on the github button down here now the first time you do this it's going to ask you to allow netlify access to your github account just give it access i've already done that and then down here it's going to list all of your repos search for the one you just created i called it gaming vibes so i'll search for gaming and then click on this repo now make sure this is set to main that means that it's going to take the main branch from our repo build that project and deploy it down here you can keep the build command the same and the publish directory the same just click on deploy site now if this is the first time you're deploying this next application you might get a build area down here but if you do it's probably because the plugins over here doesn't have essential next.js installed this is required on netlify for any next js project now automatically it should install this plugin but if it doesn't just click on this button right here search for the plugin and click on the button to install it then try deploying again by going to deploys and trigger deploy and deploy site right here but hopefully it should work straight off all right cool so we can see that mine's published so everything's worked and i'm gonna now go to identity this is where we enable identity for this site so just click on this right here enabling identity and now if we go to settings and usage you can see all of the different settings for your identity service so how people register the different external providers you can use etc now we will be looking at a lot of these settings in the future but for now we can leave everything as is so now we have the identity package installed on the front end and we also have identity enabled on our project right here where we deployed it so now in the next video what we're going to do is start to use the identity package in our project so we can communicate with netlify in order to authenticate users all right but before we do that i want to do one more thing i want to go to site overview and then site settings and i just want to change the site name right here so click on this button and i'm going to call it gaming iphone vibes like so and i'm going to save that let's see if it works yep that's available cool so now if we go to site overview we can see this is the url for our site if i click on this we should see now this project deployed on netlify at this web address i can go to guides that works home that works awesome
Original Description
Hey gang, in this tutorial we'll install the Netlify Identity package locally into our project and also set up continuous deployment.
🐱👤 View this course in full without ads on Net Ninja Pro:
https://netninja.dev/p/next-js-with-netlify-identity
🐱💻 Course Files:
+ https://github.com/iamshaunjp/next-netlify-identity
🐱👤 JOIN THE YOUTUBE NET NINJA GANG -
https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg/join
🐱💻 🐱💻 My Udemy Courses:
+ Modern JavaScript - https://www.thenetninja.co.uk/udemy/modern-javascript
+ Vue JS 3 & Firebase - https://www.thenetninja.co.uk/udemy/vue-and-firebase
+ D3.js & Firebase - https://www.thenetninja.co.uk/udemy/d3-and-firebase
🐱💻 Useful playlists:
+ Next.js Tutorial for Beginners - https://www.youtube.com/watch?v=A63UxsQsEbU&list=PL4cUxeGkcC9g9gP2onazU5-2M-AzA8eBw
+ Full React tutorial - https://www.youtube.com/watch?v=j942wKiXFu8&list=PL4cUxeGkcC9gZD-Tvwfod2gaISzfRiP9d
🐱💻 🐱💻 Other links:
+ Get VS Code - https://code.visualstudio.com/
+ Netlify Identity docs - https://docs.netlify.com/visitor-access/identity/
+ Netlify Functions docs - https://docs.netlify.com/functions/overview/
🐱💻 Social Links:
Facebook - https://www.facebook.com/thenetninjauk
Twitter - https://twitter.com/thenetninjauk
Instagram - https://www.instagram.com/thenetninja/
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Net Ninja · Net Ninja · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Net Ninja
Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Net Ninja
Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Net Ninja
GraphQL Tutorial #1 - Introduction to GraphQL
Net Ninja
GraphQL Tutorial #2 - A Birdseye View of GraphQL
Net Ninja
GraphQL Tutorial #3 - Project (stack) Overview
Net Ninja
GraphQL Tutorial #4 - Making Queries (front-end preview)
Net Ninja
GraphQL Tutorial #5 - Express App Setup
Net Ninja
GraphQL Tutorial #6 - Setting up GraphQL
Net Ninja
GraphQL Tutorial #7 - GraphQL Schema
Net Ninja
GraphQL Tutorial #8 - Root Query
Net Ninja
GraphQL Tutorial #9 - The Resolve Function
Net Ninja
GraphQL Tutorial #10 - Testing Queries in Graphiql
Net Ninja
GraphQL Tutorial #11 - GraphQL ID Type
Net Ninja
GraphQL Tutorial #12 - Author Type
Net Ninja
GraphQL Tutorial #13 - Type Relations
Net Ninja
GraphQL Tutorial #14 - GraphQL Lists
Net Ninja
GraphQL Tutorial #15 - More on Root Queries
Net Ninja
GraphQL Tutorial #16 - Connecting to mLab
Net Ninja
GraphQL Tutorial #17 - Mongoose Models
Net Ninja
GraphQL Tutorial #18 - Mutations
Net Ninja
GraphQL Tutorial #19 - More on Mutations
Net Ninja
GraphQL Tutorial #20 - Updating the Resolve Functions
Net Ninja
GraphQL Tutorial #21 - GraphQL NonNull
Net Ninja
GraphQL Tutorial #22 - Adding a Front-end
Net Ninja
GraphQL Tutorial #23 - Create React App
Net Ninja
GraphQL Tutorial #24 - Book List Component
Net Ninja
GraphQL Tutorial #25 - Apollo Client Setup
Net Ninja
GraphQL Tutorial #26 - Making Queries from React
Net Ninja
GraphQL Tutorial #27 - Rendering Data in a Component
Net Ninja
GraphQL Tutorial #28 - Add Book Component
Net Ninja
GraphQL Tutorial #29 - External Query File
Net Ninja
GraphQL Tutorial #30 - Updating Component State
Net Ninja
GraphQL Tutorial #31 - Composing Queries
Net Ninja
GraphQL Tutorial #32 - query variables
Net Ninja
GraphQL Tutorial #33 - Re-fetching Queries
Net Ninja
GraphQL Tutorial #34 - Book Details Component
Net Ninja
GraphQL Tutorial #36 - Styling the App
Net Ninja
GraphQL Tutorial #35 - Making a Single Query
Net Ninja
Build Apps with Vue & Firebase - Udemy Course
Net Ninja
Updated Vue & Firebase Course (Udemy)
Net Ninja
Vue & Firebase Real-time Chat (Preview) #1 - Intro
Net Ninja
Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Net Ninja
Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Net Ninja
Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Net Ninja
Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Net Ninja
Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Net Ninja
Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Net Ninja
Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Net Ninja
Object Oriented JavaScript Tutorial #1 - Introduction
Net Ninja
Object Oriented JavaScript Tutorial #2 - Object Literals
Net Ninja
Object Oriented JavaScript Tutorial #3 - Updating Properties
Net Ninja
Object Oriented JavaScript Tutorial #4 - Classes
Net Ninja
Object Oriented JavaScript Tutorial #5 - Class Constructors
Net Ninja
Object Oriented JavaScript Tutorial #6 - Class Methods
Net Ninja
Object Oriented JavaScript Tutorial #7 - Method Chaining
Net Ninja
Object Oriented JavaScript Tutorial #8 - Class Inheritance
Net Ninja
Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Net Ninja
Object Oriented JavaScript Tutorial #10 - Prototype
Net Ninja
Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Net Ninja
Related Reads
📰
📰
📰
📰
Inside the Wayfair Frontend SDE-2 Interview: A Complete Breakdown
Medium · Programming
I Spent Two Years Maintaining a React SPA. HTMX Rebuilt It in a Week
Medium · Programming
The 5 Levels of Front End Engineering (And Where Most Developers Get Stuck)
Medium · Programming
Browser-Based PDF Editing with Vue 3 and pdf-lib
Dev.to · sunshey
🎓
Tutor Explanation
DeepCamp AI