This is the examples repository for Express Admin
Other locations:
$ git clone https://github.com/simov/express-admin-examples
$ cd express-admin-examples
$ npm install
CREATE SCHEMA `express-admin-examples` ;
CREATE USER liolio@localhost IDENTIFIED BY 'karamba' ;
GRANT ALL ON `express-admin-examples`.* TO liolio@localhost ;
create database "express-admin-examples";
-- create schema 'name'; (default: 'public')
create user liolio with password 'karamba';
grant all on database "express-admin-examples" to liolio;
# MySQL
$ mysql -p --user=root 'express-admin-examples' < fixtures/mysql/schema.sql
$ mysql -p --user=root 'express-admin-examples' < fixtures/mysql/insert.sql
# PostgreSQL
$ sudo -u postgres psql 'express-admin-examples' < fixtures/pg/schema.sql
$ sudo -u postgres psql 'express-admin-examples' < fixtures/pg/insert.sql
# ... on Windows
> psql -U postgres express-admin-examples < fixtures/pg/schema.sql
> psql -U postgres express-admin-examples < fixtures/pg/insert.sql
# SQLite
$ node fixtures/sqlite/import.js
For SQLite you need to change the path to the database inside config/sqlite/config.json
# MySQL
$ admin config/mysql/
# PostgreSQL
$ admin config/pg/
# ... locally installed, on Linux
$ ./node_modules/.bin/admin config/pg
# ... locally installed, on Windows
> node_modules\.bin\admin config/pg
# SQLite
$ admin config/sqlite/
Username: admin Password: 11aaAA