express-admin

MySQL, MariaDB, PostgreSQL, SQLite admin for Node.js

MIT License

Downloads
173
Stars
1.2K
Committers
11

Bot releases are visible (Hide)

express-admin - 2.0.0 Latest Release

Published by simov over 1 year ago

  • Change: the admin cli is no longer available
  • Change: the admin is now exposed as an Express.js middleware only
  • Change: config.json server key is no longer needed
  • Change: config.json app was renamed to admin
  • Change: config.json new required admin.settings config should be set the absolute path to your settings.json file
  • New: config.json new admin.readonly flag replacing the -v cli argument
  • New: config.json new admin.debug flag replacing the -l cli argument
  • New: config.json new admin.favicon key to specify a path to a custom favicon.ico file to use
  • New: config.json new admin.footer text and URL to use for the admin's footer
  • New: config.json new admin.locale path to a custom locale file to use
  • New: config.json new admin.session object to configure the underlying session middleware
  • Change: users.json each user now contains just a name and pass fields as clear text
express-admin - Update Dependencies

Published by simov about 6 years ago

Resolves the security issues.

express-admin - Bugfix in settings initialization

Published by simov over 7 years ago

express-admin - Spanish Support

Published by simov over 7 years ago

express-admin - Fix for NPM3

Published by simov over 8 years ago

  • Fixed Express Admin static files not being loaded correctly when the admin is embedded and NPM3 is used
express-admin - Allow custom user session middleware

Published by simov almost 9 years ago

See the session key in the Embedding Example.

express-admin -

Published by simov almost 10 years ago

  • fix orignal select in place of chosen not showing up on mobile
  • update chosen 1.2.0
  • update datetimepicker to the latest master
  • update to bootstrap/bootswatch 3.3.1
express-admin -

Published by simov about 10 years ago

express-admin - Migrate to Express 4

Published by simov about 10 years ago

express-admin - Compound Primary Key

Published by simov over 10 years ago

  • feature
  • fix
    • dates are not stored inside the date controls of listview filter
    • mysql error when filtering by static control type
    • select input with static values - NULL is saved as string
    • pg custom schema name is not honored
  • change
    • changed version of node-mysql to 2.2.0
express-admin - Blob data types + translations + fixes

Published by simov over 10 years ago

Blob data types

Inside settings.json the control type for blob/bytea fields can be configured like this

{
    "file": true,
    "binary": true
}

This will add an input type=file control to the editview, but instead uploading the file to the upload folder, it will store it directly into the database.

Currently the support for blob fields is very basic, if you have any comments leave them in the issue tracker

Translations

Bugfixes

express-admin - SQLite Support

Published by simov over 10 years ago

Install the SQLite bindings

Like with PostgreSQL you need to install the SQLite bindings separately

# SQLite only: run this inside the express-admin folder
$ npm install [email protected]

The module used is https://github.com/mapbox/node-sqlite3 and it's outlined inside the documentation as well http://simov.github.io/express-admin-site/#install

Creating new project

  • When prompted for Database type: type sqlite
  • When prompted for Database name: type the /absolute/path/to/your/database.sqlite

Auto incrementing primary keys

Since SQLite has its own build in auto incrementing id field called rowid you can configure your project to use them like this:

  • add this id column definition inside your table's columns array
"columns": [
    {
        "verbose": "id",
        "name": "rowid",
        "control": {
            "text": true
        },
        "type": "int(11)",
        "allowNull": false,
        "defaultValue": null,
        "listview": {
            "show": false
        },
        "editview": {
            "show": false
        }
    },
    ...
]
  • Inside the table key set the primary key to be the rowid of the table
"table": {
    "name": "...",
    "pk": "rowid",
    "verbose": "..."
}

Pull the latest examples from https://github.com/simov/express-admin-examples/ and see how it's done there

express-admin - Event Hooks

Published by simov over 10 years ago

express-admin - Listview Search Filter

Published by simov almost 11 years ago

  • Listview search filter
  • Custom column ordering
  • Fixed redirect to last active page in Listview after certain actions taken inside the Editview

There is a new option available for each table's listview key inside settings.json
http://simov.github.io/express-admin-site/#settingsjson

"table_name": {
    ...
    "listview": {
        "order": { ... },
        "page": 25,
        "filter": ["column_name1", "column_name2" ...]
    }
}

Add any table's column including oneToMany and manyToMany columns. Pull the latest examples from https://github.com/simov/express-admin-examples/ and take a look at the controls table to see how all currently available control types look like inside the Filter panel.

To expand the Filter panel click on the small icon next to the Listview's title.

All filtering options set inside the Filter panel are perceived through the entire user's session. Click on the Clear button at any time to clear the filtering options.

express-admin - New control types

Published by simov almost 11 years ago

express-admin - Show many to many columns inside the listview

Published by simov almost 11 years ago

"listview": {
    "show": true
}
  • add new record button for each column inside the mainview
  • bugfix for many to many with allow null when inserting
express-admin - File Uploads

Published by simov almost 11 years ago

  • the default location for file uploads is public/upload make sure you have rights to write there
  • the upload folder location can be configured from the config.json file http://simov.github.io/express-admin-site/#configjson
  • any regular text field can be configured to have a file control inside settings.json
"control": {
    "file": true
}
  • fixed urls path bug in listview
express-admin - PostgreSQL Support

Published by simov almost 11 years ago

$ [sudo] npm install [-g] express-admin
# PostgreSQL only: run this inside the express-admin folder
$ npm install [email protected]

http://simov.github.io/express-admin-site/#install

express-admin - Express Admin Embedding

Published by simov almost 11 years ago

  • Updated to the latest version of express (3.4.4)
  • Express Admin now can be embedded into existing expressjs application
  • Breaking changes into the custom.json object structure
express-admin - Migrated to Bootstrap 3

Published by simov almost 11 years ago

  • Migrated to Bootstrap/Bootswatch 3
  • Overall better support for mobile devices
  • Updated to the latest version of chosen