simov / express-admin-examples Goto Github PK
View Code? Open in Web Editor NEWExpress Admin Examples
License: MIT License
Express Admin Examples
License: MIT License
Hi guys,
I tried to execute this command mysql -p --user=root 'express-admin-examples' < fixtures/mysql/insert.sql
while I was following the steps from here.
Then MySQL returned the following error.
ERROR 1364 (HY000) at line 195: Field 'binary' doesn't have a default value
To fix this I had to edit the query at the INSERTS into the table controls_inline
. I added the column binary
and a default value that was a hex string.
It would be fine to fix this to the database creation works for MySQL.
Thanks.
Relatively new to Postgresql here, I did everything in the instructions regarding the Postgresql setup, however I am getting this error while running admin config/pg
Could this be that I created the database under the wrong user?
the supportet sqlite version does not work with npm. When using the latest sqlite version I get this error:
Express Admin listening on port 5000
GET / 302 9.492 ms - 56
GET /login 200 13.817 ms - 8092
GET /express-admin.css 304 5.355 ms - -
GET /csslib/bootstrap.min.css 304 58.091 ms - -
GET /csslib/bootstrap-datetimepicker.min.css 304 57.336 ms - -
GET /csslib/chosen.min.css 304 55.270 ms - -
GET /jslib/jquery-1.9.1.min.js 304 53.856 ms - -
GET /jslib/bootstrap.min.js 304 256.042 ms - -
GET /express-admin.js 304 1.050 ms - -
GET /jslib/bootstrap-datetimepicker.min.js 304 7.610 ms - -
GET /jslib/chosen.jquery.min.js 304 4.954 ms - -
GET /jslib/cookie.js 304 4.627 ms - -
GET /bootswatch/default/bootstrap.min.css 304 70.514 ms - -
GET /favicon.ico 304 0.923 ms - -
POST /login 302 63.730 ms - 46
TypeError: Cannot read property 'length' of undefined
at Object.select (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express-admin\lib\qb\lst.js:43:31)
at _data (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express-admin\routes\listview.js:38:12)
at exports.get (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express-admin\routes\listview.js:26:5)
at Layer.handle [as handle_request] (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\layer.js:95:5)
at next (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\route.js:137:13)
at exports.restrict (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express-admin\routes\auth.js:20:34)
at Layer.handle [as handle_request] (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\layer.js:95:5)
at next (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\layer.js:95:5)
at C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\index.js:281:22
at Function.process_params (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\index.js:335:12)
at next (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\index.js:275:10)
at C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express-admin\app.js:249:9
at Layer.handle [as handle_request] (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\ACompany\OneDrive - aCompany.no\SW\Web\sqlite_ex2\node_modules\express\lib\router\index.js:317:13)
GET / 500 2.774 ms - 2420
Hi,
When we pass to the next page in list page then we click to "add new item" button, we get page 404 !!!
HI @simov ,
Currently our admin users go to config/users.json
, what if we want to move our users to database
and create them with certain roles
Is there option to disable delete on some record, I saw that you I can disable edit mode that disable delete two, but I want to stop only delete.
In the express-admin-examples app, saving or updating records in the 'user' table does not trigger any of the defined preSave or postSave callbacks (i.e. the value for 'updated_at' does not change).
what control to use with passwords?
HI @simov ,
Do we have any way to override the default layouts, templates or views? e.g. I need to customize the header of the site. I have to apply ACL (access control logic) and based on that show things and hide certain things.
Thanks
Hi,
I'm trying to use this project in my app but having a hard time getting the basics set up.
I'm following the install guide on https://github.com/simov/express-admin-examples
sqlite3
moduleI'm running Node v10.6.0
and I checked that I do have sqlite3 installed.
here's the package.json
{
"name": "express-admin-examples",
"version": "1.0.0",
"description": "Examples for Express Admin.",
"license": "MIT",
"homepage": "https://github.com/simov/express-admin-examples",
"author": {
"name": "simo",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "git://github.com/simov/express-admin-examples.git"
},
"dependencies": {
"cloudinary": "*",
"express": "3.4.4",
"moment": "*",
"sqlite3": "^4.1.0"
},
"scripts": {
"postinstall": "node path.js"
}
}
I've tried searching online but nothing seems to solve it. Could you advise what I might have done wrong here?
Thanks and appreciate your help on this. Let me know if you need anything to debug this issue.
Hello!
I would like to have dynamic file upload path, because if i will upload all the files into one directory, it will lead to problems, due to large amount of files.
How can i easily (or not) make express-admin to get upload path as a function result?
The example is - songs library, including mp3/wav/etc/etc for my radio
I would like to store all the files i upload in the directories like {artist_id}/{album_id}/{track_name}.{ext}
And when i would edit any existing entry in my database, i'd love to make express-admin to seek file in that dynamic directory path
Thanks foward :-)
I am relatively new to GitHub, but experienced programmer
Hi,
they are a prob with the add new item button in case we navigate in a page list to the next page (nĀ° > 1)
Hi,
I case i want to disable the display of "view4" in "mainview":
"view4": {
"app": {
"path" : "/var/www/myProjet/custom/app4/app",
"slug": "view4",
"verbose": "Breadcrumbs",
"mainview": {
"show": false // I change this
}
}
}
I got this problem:
Cannot set property 'header' of undefined at exports.admin
Could you tell me how I can get "admin" command to start express-admin-examples?
Any reference document is also appreciated.
Hi,
When I do:
admin config/pg/
It's returned:
Could not find
pg
orpg.js
module
Any idea what might be?
Hi,
In oneToMany relation, in case we have "pk" with a string type we get a prob in edit view.
I try this solution because this module don't provide the possibility to create static options in a select input .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ššš
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ā¤ļø Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.