Giter Club home page Giter Club logo

arjunaranetacodes / morecodes-youtube Goto Github PK

View Code? Open in Web Editor NEW
294.0 294.0 939.0 1.46 MB

A collection of CRUD, Login, and Registration boilerplates on various stacks built with ReactJS, VueJS, AngularJS, NodeJS, Express, Flask, Laravel, AdonisJS, KoaJS, HapiJS used in my Youtube videos MoreCodes (https://www.youtube.com/channel/UCK8YsKv4-N6ItZfzEyKlI6A)

License: MIT License

Python 0.71% HTML 8.01% CSS 0.36% JavaScript 45.23% TypeScript 5.24% Vue 5.70% PHP 34.74%

morecodes-youtube's Introduction

A collection of Todo List and Login Registration Boilerplates I used in my MoreCodes Youtube Channel - https://www.youtube.com/channel/UCK8YsKv4-N6ItZfzEyKlI6A

MoreCodes

Join Us on Youtube! https://www.youtube.com/channel/UCK8YsKv4-N6ItZfzEyKlI6A/featured

Todo List Application Login and Registration
NodeJS + Express + ReactJS + MongoDB NodeJS + Express + ReactJS + MongoDB
NodeJS + Express + ReactJS + MySQL NodeJS + Express + ReactJS + MySQL
NodeJS + Express + AngularJS + MongoDB NodeJS + Express + AngularJS + MongoDB
NodeJS + Express + AngularJS + MySQL NodeJS + Express + AngularJS + MySQL
NodeJS + Express + VueJS + MongoDB NodeJS + Express + VueJS + MongoDB
NodeJS + Express + VueJS + MySQL NodeJS + Express + VueJS + MySQL
Flask + ReactJS + MongoDB Flask + ReactJS + MongoDB
Flask + ReactJS + MySQL Flask + ReactJS + MySQL
Flask + AngularJS + MongoDB Flask + AngularJS + MongoDB
Flask + AngularJS + MySQL Flask + AngularJS + MySQL
Flask + VueJS + MongoDB Flask + VueJS + MongoDB
Flask + VueJS + MySQL Flask + VueJS + MySQL
Laravel + ReactJS + MongoDB Laravel + ReactJS + MongoDB
Laravel + ReactJS + MySQL Laravel + ReactJS + MySQL
Laravel + AngularJS + MongoDB Laravel + AngularJS + MongoDB
Laravel + AngularJS + MySQL Laravel + AngularJS + MySQL
Laravel + VueJS + MongoDB Laravel + VueJS + MongoDB
Laravel + VueJS + MySQL Laravel + VueJS + MySQL
KoaJS + ReactJS + MongoDB KoaJS + ReactJS + MongoDB
KoaJS + ReactJS + MySQL KoaJS + ReactJS + MySQL
KoaJS + AngularJS + MongoDB KoaJS + AngularJS + MongoDB
KoaJS + AngularJS + MySQL KoaJS + AngularJS + MySQL
KoaJS + VueJS + MongoDB KoaJS + VueJS + MongoDB
KoaJS + VueJS + MySQL KoaJS + VueJS + MySQL
HapiJS + ReactJS + MongoDB HapiJS + ReactJS + MongoDB
HapiJS + ReactJS + MySQL HapiJS + ReactJS + MySQL
HapiJS + AngularJS + MongoDB HapiJS + AngularJS + MongoDB
HapiJS + AngularJS + MySQL HapiJS + AngularJS + MySQL
HapiJS + VueJS + MongoDB HapiJS + VueJS + MongoDB
HapiJS + VueJS + MySQL HapiJS + VueJS + MySQL
FeatherJS + ReactJS + MongoDB FeatherJS + ReactJS + MongoDB
FeatherJS + ReactJS + MySQL FeatherJS + ReactJS + MySQL
FeatherJS + AngularJS + MongoDB FeatherJS + AngularJS + MongoDB
FeatherJS + AngularJS + MySQL FeatherJS + AngularJS + MySQL
FeatherJS + VueJS + MongoDB FeatherJS + VueJS + MongoDB
FeatherJS + VueJS + MySQL FeatherJS + VueJS + MySQL

MoreCodes

Join Us on Youtube!
https://www.youtube.com/channel/UCK8YsKv4-N6ItZfzEyKlI6A

Follow MoreCodes on Social Media:
Facebook: https://www.facebook.com/morecodes/
Twitter: https://twitter.com/MoreCodes

Follow me on Social Media:
Facebook: https://www.facebook.com/arjun.araneta
Twitter: https://twitter.com/ArjunCAraneta
LinkedIn: https://www.linkedin.com/in/arjun-araneta-41146976/

morecodes-youtube's People

Contributors

arjunaranetacodes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

morecodes-youtube's Issues

Cannot GET / and 400 (Bad Request)

I followed the youtube tutorial and can register, but can't login. This is the the login system with nodejs and react

image
image

After narrowing down the code, I believe its coming from the /routes/users.js file. Has anyone else has this problem? You know of a solution?

not able to perform delete operation

delete functionality is not working properly ,400 status on api call and not able to delete it from database eventhough i used put instead of delete.I also tried delete but still not working.

Unhandled Rejection (TypeError): Cannot read property 'error' of undefined

I keep getting the below error when trying to login. How do I fix it?

Unhandled Rejection (TypeError): Cannot read property 'error' of undefined
(anonymous function)
D:/CovidApp/Covid19nu/react-frontend/src/components/Login.js:29
26 | }
27 |
28 | login(user).then(res => {

29 | if (!res.error) {
| ^ 30 | this.props.history.push(/profile)
31 | }
32 | })

mevn-mongodb-login-req: How to add route guard

How do you add route guards to this app? I tried adding the following in the index.js:

router.beforeEach((to, from, next) => {
  const token = localStorage.usertoken
  const requiresAuth = to.matched.some(record => record.meta.requiresAuth)
  if (requiresAuth && !token) next('login')
  else if (!requiresAuth && token) next('profile')
  else next()
})
export default router

... in order to prevent the user from being logged out after refreshing the page, but to no avail. Any recommendations on how to add route guards?

The IsLoggedIn method not working in app.component.html

After I compiled and ran in browser, I found 2 errors.

I verified the code and there is no issue on the code. Still i get the following error at runtime.
[AuthenticationService -> AuthenticationService -> AuthenticationService]:
NullInjectorError: No provider for AuthenticationService!
at NullInjector.get (http://localhost:4200/vendor.js:9122:27)
at R3Injector.get (http://localhost:4200/vendor.js:19388:33)
at R3Injector.get (http://localhost:4200/vendor.js:19388:33)
at R3Injector.get (http://localhost:4200/vendor.js:19388:33)
at NgModuleRef$1.get (http://localhost:4200/vendor.js:32142:33)
at Object.get (http://localhost:4200/vendor.js:30407:35)
at getOrCreateInjectable (http://localhost:4200/vendor.js:12128:39)
at Module.ɵɵdirectiveInject (http://localhost:4200/vendor.js:22059:12)
at NodeInjectorFactory.AppComponent_Factory [as factory] (http://localhost:4200/main.js:151:150)
at getNodeInjectable (http://localhost:4200/vendor.js:12236:44)
defaultErrorLogger @ core.js:4196
handleError @ core.js:4244
(anonymous) @ core.js:27807
invoke @ zone-evergreen.js:364
run @ zone-evergreen.js:123
runOutsideAngular @ core.js:27074
(anonymous) @ core.js:27807
invoke @ zone-evergreen.js:364
onInvoke @ core.js:27147
invoke @ zone-evergreen.js:363
run @ zone-evergreen.js:123
(anonymous) @ zone-evergreen.js:857
invokeTask @ zone-evergreen.js:399
onInvokeTask @ core.js:27135
invokeTask @ zone-evergreen.js:398
runTask @ zone-evergreen.js:167
drainMicroTaskQueue @ zone-evergreen.js:569
Promise.then (async)
scheduleMicroTask @ zone-evergreen.js:552
scheduleTask @ zone-evergreen.js:388
scheduleTask @ zone-evergreen.js:210
scheduleMicroTask @ zone-evergreen.js:230
scheduleResolveOrReject @ zone-evergreen.js:847
then @ zone-evergreen.js:979
bootstrapModule @ core.js:27735
./src/main.ts @ main.ts:11
webpack_require @ bootstrap:79
0 @ main.ts:12
webpack_require @ bootstrap:79
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.js:1
main.ts:12 NullInjectorError: R3InjectorError(AppModule)[AuthenticationService -> AuthenticationService -> AuthenticationService]:
NullInjectorError: No provider for AuthenticationService!
at NullInjector.get (http://localhost:4200/vendor.js:9122:27)
at R3Injector.get (http://localhost:4200/vendor.js:19388:33)
at R3Injector.get (http://localhost:4200/vendor.js:19388:33)
at R3Injector.get (http://localhost:4200/vendor.js:19388:33)
at NgModuleRef$1.get (http://localhost:4200/vendor.js:32142:33)
at Object.get (http://localhost:4200/vendor.js:30407:35)
at getOrCreateInjectable (http://localhost:4200/vendor.js:12128:39)
at Module.ɵɵdirectiveInject (http://localhost:4200/vendor.js:22059:12)
at NodeInjectorFactory.AppComponent_Factory [as factory] (http://localhost:4200/main.js:151:150)
at getNodeInjectable (http://localhost:4200/vendor.js:12236:44)
(anonymous) @ main.ts:12
invoke @ zone-evergreen.js:364
run @ zone-evergreen.js:123
(anonymous) @ zone-evergreen.js:857
invokeTask @ zone-evergreen.js:399
runTask @ zone-evergreen.js:167
drainMicroTaskQueue @ zone-evergreen.js:569
Promise.then (async)
scheduleMicroTask @ zone-evergreen.js:552
scheduleTask @ zone-evergreen.js:388
scheduleTask @ zone-evergreen.js:210
scheduleMicroTask @ zone-evergreen.js:230
scheduleResolveOrReject @ zone-evergreen.js:847
then @ zone-evergreen.js:979
bootstrapModule @ core.js:27735
./src/main.ts @ main.ts:11
webpack_require @ bootstrap:79
0 @ main.ts:12
webpack_require @ bootstrap:79
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.js:1
sockjs.js:2999 WebSocket connection to 'ws://localhost:4200/sockjs-node/739/5ofwcuvj/websocket' failed: WebSocket is closed before the connection is established.
WebSocketTransport.close @ sockjs.js:2999
SockJS._transportTimeout @ sockjs.js:844
invokeTask @ zone-evergreen.js:399
runTask @ zone-evergreen.js:167
invokeTask @ zone-evergreen.js:480
ZoneTask.invoke @ zone-evergreen.js:469
timer @ zone-evergreen.js:2552
setTimeout (async)
scheduleTask @ zone-evergreen.js:2573
scheduleTask @ zone-evergreen.js:385
scheduleTask @ zone-evergreen.js:210
scheduleMacroTask @ zone-evergreen.js:233
scheduleMacroTaskWithCurrentZone @ zone-evergreen.js:1134
(anonymous) @ zone-evergreen.js:2586
proto. @ zone-evergreen.js:1449
SockJS._connect @ sockjs.js:823
SockJS._receiveInfo @ sockjs.js:803
g @ sockjs.js:66
EventEmitter.emit @ sockjs.js:86
(anonymous) @ sockjs.js:567
g @ sockjs.js:66
EventEmitter.emit @ sockjs.js:86
(anonymous) @ sockjs.js:374
g @ sockjs.js:66
EventEmitter.emit @ sockjs.js:86
xhr.onreadystatechange @ sockjs.js:1598
wrapFn @ zone-evergreen.js:1218
invokeTask @ zone-evergreen.js:399
runTask @ zone-evergreen.js:167
invokeTask @ zone-evergreen.js:480
invokeTask @ zone-evergreen.js:1621
globalZoneAwareCallback @ zone-evergreen.js:1647
XMLHttpRequest.send (async)
scheduleTask @ zone-evergreen.js:2845
scheduleTask @ zone-evergreen.js:385
scheduleTask @ zone-evergreen.js:210
scheduleMacroTask @ zone-evergreen.js:233
scheduleMacroTaskWithCurrentZone @ zone-evergreen.js:1134
(anonymous) @ zone-evergreen.js:2878
proto. @ zone-evergreen.js:1449
AbstractXHRObject._start @ sockjs.js:1606
(anonymous) @ sockjs.js:1495
invokeTask @ zone-evergreen.js:399
runTask @ zone-evergreen.js:167
invokeTask @ zone-evergreen.js:480
ZoneTask.invoke @ zone-evergreen.js:469
timer @ zone-evergreen.js:2552
setTimeout (async)
scheduleTask @ zone-evergreen.js:2573
scheduleTask @ zone-evergreen.js:385
scheduleTask @ zone-evergreen.js:210
scheduleMacroTask @ zone-evergreen.js:233
scheduleMacroTaskWithCurrentZone @ zone-evergreen.js:1134
(anonymous) @ zone-evergreen.js:2586
proto. @ zone-evergreen.js:1449
AbstractXHRObject @ sockjs.js:1494
XHRLocalObject @ sockjs.js:2915
InfoAjax @ sockjs.js:356
InfoReceiver._getReceiver @ sockjs.js:536
InfoReceiver.doXhr @ sockjs.js:556
(anonymous) @ sockjs.js:525
invokeTask @ zone-evergreen.js:399
runTask @ zone-evergreen.js:167
invokeTask @ zone-evergreen.js:480
ZoneTask.invoke @ zone-evergreen.js:469
timer @ zone-evergreen.js:2552
setTimeout (async)
scheduleTask @ zone-evergreen.js:2573
scheduleTask @ zone-evergreen.js:385
scheduleTask @ zone-evergreen.js:210
scheduleMacroTask @ zone-evergreen.js:233
scheduleMacroTaskWithCurrentZone @ zone-evergreen.js:1134
(anonymous) @ zone-evergreen.js:2586
proto. @ zone-evergreen.js:1449
InfoReceiver @ sockjs.js:524
SockJS @ sockjs.js:731
SockJSClient @ SockJSClient.js:43
initSocket @ socket.js:20
(anonymous) @ client:176
./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-node @ vendor.js:67879
webpack_require @ bootstrap:79
0 @ main.ts:12
webpack_require @ bootstrap:79
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
image

(anonymous) @ main.js:1
client:52 [WDS] Live Reloading enabled.

JsonWebTokenError: jwt must be provided

User data(first_name,last_name,email) can not be displayed after user successfully logs into his account.
Error is pointed at this line of code,
var decoded = jwt.verify(req.headers['authorization'], process.env.SECRET_KEY);
in Users.js of routes folder of node.js side code.

here are screenshots
1
2

mevn-mongodb-login-reg - How to redirect back to login page if !auth

After inputting the incorrect password in the login page, the user is redirected to the profile page with no loaded information and a ton of errors in the console. It would probably be better if the login page did not redirect to the profile page at all if an incorrect password is inputted. Can this be fixed so that user remains on the login page if the incorrect password is inputted?

Mysql react flask login

I have problems with register and login to my mysql. What row settings should my db have? Text or json?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.