ep10 - adding admin panel to Node.js app in less than 10 minutes

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 57

  • @jimmyr.5709
    @jimmyr.5709 5 лет назад +14

    Project to be delivered in just 4 days... you saved me !!!

  • @sukhrajsingh5378
    @sukhrajsingh5378 5 лет назад +3

    great video mate, i had an unrealistic deadline and this helped me a lot.

  • @tuan-nguyen-dev
    @tuan-nguyen-dev Месяц назад

    Unrelated question: What theme do you use for icons and editor?

  • @Olga-tc2cq
    @Olga-tc2cq Год назад

    Thank you! Helped mi a lot!:)
    greetings from Poland

  • @VineetSingh-qg5zt
    @VineetSingh-qg5zt Год назад

    Really Awesome.
    Thanks a lot man.

  • @dd92954
    @dd92954 4 года назад +3

    El panel de administracion deberia incluirse por defecto al crear un nuevo proyecto.
    Por ejemplo en django al crear un nuevo proyecto automaticamente se crea un panel de administracion, esta herramienta es realmente útil para reducir el tiempo de desarrollo.

  • @jivanalawin
    @jivanalawin 4 года назад +3

    so here's the thing, i tried to implement the admin bro with sequelize and postgres, everything went fine until the buildauthenticatedrouter thing, i did it the same way as you did, but when i was in the login page and clicked login, nothing happens. I checked the console, db, express, nothing happened, the browser kept loading nothing.
    i had set a cookie name but it doesn't change the login page field for email.
    This is the example.
    const ADMIN = {
    EMAIL : 'sss',
    PASSWORD: ''
    }
    const router = AdminBroExpress.buildAuthenticatedRouter(adminBro, {
    cookieName: process.env.ADMIN_COOKIE_NAME||'admin-bro',
    cookiePassword: process.env.ADMIN_COOKIE_PASS||'superlong-password',
    authenticate: async (email,password) => {
    if (email === ADMIN.EMAIL && password === ADMIN.PASSWORD){
    console.log('s');
    return ADMIN
    }
    null
    },
    })
    But i got nothing when i ran the app, the login page went just fine, but the login button didn't function

    • @igniz87
      @igniz87 4 года назад +2

      it's the same for me.

    • @victoriagirly2651
      @victoriagirly2651 4 года назад +2

      same here , were you able to fix it ? if you did please tell me how you did it

  • @ignitableelf123
    @ignitableelf123 3 года назад +2

    I used your same code. Admin Bro connected to my db initially, but when I added the authentication it won't connect.

  • @haarTrick
    @haarTrick 4 года назад +2

    I was really in need of this, thank you a lot
    If I may ask, how I can add oauth? Like users can only see cities that are given permission to by admin ?

    • @jscasts8575
      @jscasts8575  4 года назад

      take a look at the RBAC tutorial: softwarebrothers.github.io/admin-bro-dev/tutorial-08-rbac.html

  • @genalitashweblib
    @genalitashweblib 4 года назад +1

    Great tutorial. Thank you!

  • @kennho2887
    @kennho2887 Месяц назад

    I am newbie, what are cookiename and cookiepassword for?

  • @joel9909
    @joel9909 3 года назад

    Hello Software Bro
    The customization doesn't work anymore, also I wanted the landing page to be the first resource, not the default landing page, client's
    won't like to see that, please
    How do I go about this??

  • @jeetchheda8916
    @jeetchheda8916 2 года назад

    Please help.. I am stuck at "Error: Adapter has to have both Database and Resource"

  • @hackerwhite7957
    @hackerwhite7957 2 года назад

    how to select both node and browser , what key shoul i press

  • @katykarry2495
    @katykarry2495 Год назад

    Awesome! Can you do a video where you Update tables with a movie with the themoviedb api? I want to do a fictional movie theatre webapp for global movies

  • @joel9909
    @joel9909 3 года назад

    Is there a way I can add my own custom authentication (I created a simple auth with jwt), the customizations aren't easy or plain. The docs don't tell us a lot of things simply.... I am already gassed out on this project and didn't want to start building something from scratch in react admin
    Please help

  • @NikhilAdiga
    @NikhilAdiga 5 лет назад

    Hey,is there no way to upload image using the admin panel? I've created a new issue in the GitHub page. Please help

  • @victoriagirly2651
    @victoriagirly2651 4 года назад +1

    thank you for the video, very helpful , i have an error on my code , it works perfectly until i tried to pass authentication to it , when i try to sign in through the admin-bro admin panel it freezes , my terminal says express-session deprecated add resave options , i also submitted an issue in the admin bro GitHub page but still no response , am i missing something ? thank you for your help in advance

    • @jscasts8575
      @jscasts8575  4 года назад

      please post an issue on github with the code snippet. maybe i could help from there

  • @naveenuniyal1403
    @naveenuniyal1403 4 года назад

    Thank you brother... This really helped me...

  • @zgnmgg
    @zgnmgg 4 года назад

    good project

  • @ArdhianEkawijana
    @ArdhianEkawijana 5 лет назад

    Sorry I always get this error "TypeError: filter.reduce is not a function" please help.. thanx before.

  • @archeysurname4441
    @archeysurname4441 4 года назад

    Is it possible to use AdminBro on the Heroku server?)

  • @NikhilAdiga
    @NikhilAdiga 5 лет назад

    Hello, I am getting this error [Error: Cannot find module '/routes/admin.router'] I tried many things but its not working. Please help

    • @jscasts8575
      @jscasts8575  5 лет назад

      Please create an issue in AdminBro repo here: github.com/SoftwareBrothers/admin-bro/issues and write the code you use to initialize admin bro - I will try to help from there

  • @andrewlovatoNYC
    @andrewlovatoNYC 4 года назад

    I have triple checked that my code matches yours in the video but when I log in, it just times out. Is this possibly due to changes to the beta?

    • @jscasts8575
      @jscasts8575  4 года назад

      yes. it was for version 0.6 of AdminBro. now it is 2.2 :). Check out my latest video which is on the latest AdminBro. btw i will publish another one today night

  • @parveenkhan3339
    @parveenkhan3339 4 года назад

    how to customize the dashboard ? please help me , its urgent . i want just simple dashboard with no logo of software brothers.

    • @jscasts8575
      @jscasts8575  4 года назад

      here is a simple snippet on the backend side: adminbro.com/tutorial-custom-dashboard.html
      You can write your dashboard component like this:
      ```
      // my-dashboard-component.jsx
      const Dashboard = () => (
      I am custom dashboard component
      )
      export default Dashboard
      ```

  • @tejasrireddy9680
    @tejasrireddy9680 4 года назад

    Anyone ! could you please help for editing the ./admin/login page's front-end part in the source code downloaded from given link!

  • @dawnbugay7094
    @dawnbugay7094 3 года назад

    Im too lazy to setup my admin lol this is great

  • @TheMaidenReturns
    @TheMaidenReturns 5 лет назад

    i am getting another error : "C:\Users\Rares\Desktop\UNI\ONE FELL SWOOP new
    ode_modules\admin-bro\src\frontend\login-template.js:1
    (function (exports, require, module, __filename, __dirname) { import React from 'react'"... Do you know what is happening?

    • @jscasts8575
      @jscasts8575  5 лет назад

      I see that you posted an issue - answered there

    • @TheMaidenReturns
      @TheMaidenReturns 5 лет назад

      @@jscasts8575 i posted the issue there after leaving the comment on your video :D

  • @jayrojimenezbarahona515
    @jayrojimenezbarahona515 4 года назад

    I have read all the comments and I have the same error
    anyone have the solution to this:
    "express-session deprecated undefined resave option; provide resave option node_modules/admin-bro-expressjs/plugin.js:138:14
    "
    "express-session deprecated undefined saveUninitialized option; provide saveUninitialized option node_modules/admin-bro-expressjs/plugin.js :138:14 AdminBro: bundle ready we're connected!"
    somebody help me.. please thanks

  • @BharatPawar13
    @BharatPawar13 5 лет назад

    hi can we add role based access control using admin bro? i need to create mulitple roles like super admin ,admin,user...is it gonna help on it?

    • @jscasts8575
      @jscasts8575  5 лет назад

      please add an issue in github - and we can take it from there.

    • @BharatPawar13
      @BharatPawar13 5 лет назад

      ok wait

    • @BharatPawar13
      @BharatPawar13 5 лет назад

      please brother reply me..i created an issue on github..

    • @jscasts8575
      @jscasts8575  5 лет назад +1

      added this feature in version 1.0.0 - check it out!

  • @abbasloda1
    @abbasloda1 4 года назад

    Strapi also does similar

  • @deadpool-142
    @deadpool-142 4 года назад

    Please reply its urgent
    It worked same until 3:52
    i passed mongoose in databases but it shows no changes on refresh please help i m in urgent need

  • @micahchannel8743
    @micahchannel8743 5 лет назад

    please i cannot install Admin bro in my windows 10...........check the error am getting below
    C:\Users\micah\Desktop\michael\mainstuff>npm install admin-bro admin-bro-express
    js
    npm WARN deprecated @babel/polyfill@7.4.4: ? As of Babel 7.4.0, this
    npm WARN deprecated package has been deprecated in favor of directly
    npm WARN deprecated including core-js/stable (to polyfill ECMAScript
    npm WARN deprecated features) and regenerator-runtime/runtime
    npm WARN deprecated (needed to use transpiled generator functions):
    npm WARN deprecated
    npm WARN deprecated > import "core-js/stable";
    npm WARN deprecated > import "regenerator-runtime/runtime";
    npm ERR! Unexpected end of JSON input while parsing near '..."electron-to-chromi
    um'
    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\micah\AppData\Roaming
    pm-cache\_logs\2019-08-17T00_13_15_
    011Z-debug.log
    C:\Users\micah\Desktop\michael\mainstuff>npm install --save mongoose-role
    npm WARN mainstuff@1.0.0 No repository field.
    + mongoose-role@3.0.3
    added 1 package in 178.14s

    • @jscasts8575
      @jscasts8575  5 лет назад

      you can try to run `npm cache clean --force` and try again

  •  4 года назад

    ona dai i wenth to malta in a bigga otel !!

  • @muhammadharis87
    @muhammadharis87 4 года назад

    who's that nodemon?!!

  • @king0fcodesgooglee190
    @king0fcodesgooglee190 5 лет назад

    i know your lat and longitude , that's for tutorial., ill send a nuke now