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.
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
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 ?
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??
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
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
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
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
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
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 ```
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?
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
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
Project to be delivered in just 4 days... you saved me !!!
glad to hear that :)!
great video mate, i had an unrealistic deadline and this helped me a lot.
glad to hear that :)
@@jscasts8575 Yes im deadline too, helped me a lot
Unrelated question: What theme do you use for icons and editor?
Thank you! Helped mi a lot!:)
greetings from Poland
Glad it helped!
Really Awesome.
Thanks a lot man.
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.
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
it's the same for me.
same here , were you able to fix it ? if you did please tell me how you did it
I used your same code. Admin Bro connected to my db initially, but when I added the authentication it won't connect.
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 ?
take a look at the RBAC tutorial: softwarebrothers.github.io/admin-bro-dev/tutorial-08-rbac.html
Great tutorial. Thank you!
Glad it was helpful!
I am newbie, what are cookiename and cookiepassword for?
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??
Please help.. I am stuck at "Error: Adapter has to have both Database and Resource"
how to select both node and browser , what key shoul i press
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
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
Hey,is there no way to upload image using the admin panel? I've created a new issue in the GitHub page. Please help
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
please post an issue on github with the code snippet. maybe i could help from there
Thank you brother... This really helped me...
Glad to hear that
good project
Sorry I always get this error "TypeError: filter.reduce is not a function" please help.. thanx before.
Is it possible to use AdminBro on the Heroku server?)
Hello, I am getting this error [Error: Cannot find module '/routes/admin.router'] I tried many things but its not working. Please help
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
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?
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
how to customize the dashboard ? please help me , its urgent . i want just simple dashboard with no logo of software brothers.
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
```
Anyone ! could you please help for editing the ./admin/login page's front-end part in the source code downloaded from given link!
Im too lazy to setup my admin lol this is great
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?
I see that you posted an issue - answered there
@@jscasts8575 i posted the issue there after leaving the comment on your video :D
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
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?
please add an issue in github - and we can take it from there.
ok wait
please brother reply me..i created an issue on github..
added this feature in version 1.0.0 - check it out!
Strapi also does similar
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
ya same happened to me
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
you can try to run `npm cache clean --force` and try again
ona dai i wenth to malta in a bigga otel !!
who's that nodemon?!!
i know your lat and longitude , that's for tutorial., ill send a nuke now