How to Create a NodeJS Login System Backend with Express and MongoDB - #1

preview_player
Показать описание
We create a node js login system backend with express and mongodb, starting with login and signup. Part 1.
GET SOURCE CODE 📀⬇️

NOTES

🔵 The created NodeJs and MongoDB backend APIs are tested using Postman.

🔵 Packages installed in the video using "yarn add ... " can be equally installed using "npm install … “.

VIDEO RESOURCES

🟢 Regular expressions used:
- /^[a-zA-Z ]*$/ for name.
- /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/ for email.

LET’S WORK

CHECK OUT THESE HELPFUL TUTORIALS

🟡 Publishing Expo React Native App to Play Store Journey

🟡 PHP Project

TOOLS USED

FOLLOW US ON:

CHAPTERS

00:00 Intro & Preview
00:28 Work Structure Setup
02:30 MongoDB Setup
03:57 DB Connection with Mongoose
05:54 Creating the Server with Express
07:29 Running the Server
08:24 API Routes Setup
09:20 Creating the Mongoose User Model
09:53 Conclusion

#tothepointcode #loginsystem #nodejs
Рекомендации по теме
Комментарии
Автор

Hey there! thanks for watching. Please leave a LIKE and use the Timestamps below to go through the video if you want.

0:00 Intro & Preview
0:28 Work Structure Setup
2:30 MongoDB Setup
3:57 DB Connection with Mongoose
5:54 Creating the Server with Express
7:29 Running the Server
8:24 API Routes Setup
9:20 Creating the Mongoose User Model
9:53 Conclusion

ToThePointCode
Автор

Man I can just keep going through your videos and learning without running into problems, errors, ..
FINALLY a good channel.

jnasyounes
Автор

At 7:45 running "nodemon server.js" I get the response 'nodemon' is not recognized as an internal or external command,
operable program or batch file. How can I solve this

NewToneMusicOfficial
Автор

you have awesome tutorials and music, thank you

Jellonova
Автор

5:44 can you say the command u used, it sort of looks cropped here on youtube

AST
Автор

add mongoose dotenv is not working on linux. Can you help please

soumilkonar
Автор

Should we add email verification on sign up 🤔?

ToThePointCode
Автор

I have a problem connectin mongodb, i get this error:
mongoparseerror: option useunifiedtopology is not supported!

tedikina
Автор

How to fix nodemon is not recognized as an internal or external command operable program or batch file.

voncedrickbriones
Автор

Great content dude, can you make a video on how to implement search input in a data using react? Thank you bro.

russellbanares
Автор

when i run the command nodemon server.js i have the error :
SyntaxError: Cannot use import statement outside a module

amineamouri
Автор

Hi my friend, thank you so much for your video! It is really great, you did a great job! Only one question, I got stuck for the mongDB ip problem, may I know what default ip address you put ? Anywhere, current Ip address ?Thank you so much !

dong_spain
Автор

Keep getting this error when using .env for my URI string: MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.. Only works when I hard code the URI in the db.js file----I also use .env for my PORT and it works. Seems to be an issue with my mongoDB string. Any suggestions appreciated

nyogrson
Автор

how do I fix this error?

MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist:

mosesjohn
Автор

I have followed d exact steps but I get an error: cannot find module 'mongose'

sevendigitsss
Автор

can we somehow connect this to reactjs frontend?

blacktipe
Автор

Please if you add user update profile and image upload it will be more efficent

CodeEight
Автор

@ToThePointCode can you also link the source code somewhere

nishchalbhardwaj
Автор

windows equivalent of touch .env is type nul > .env

Vcode
Автор

bgm is annoying, but the video compensates for it!

visheshdadhich