/express-admin-tests

System tests for Express Admin

Primary LanguageJavaScriptMIT LicenseMIT

Express Admin Tests

System tests for Express Admin

Database

x-relationships-single, x-relationships-compound, x-data-types

-- mysql
create schema `x-relationships-single` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;
-- pg
create database "x-relationships-single";

Import

$ mysql -p --user=root 'x-relationships-single' < fixtures/x-relationships-single/mysql.sql
$ sudo -u postgres psql 'x-relationships-single' < fixtures/x-relationships-single/pg.sql
$ node fixtures/sqlite-import.js x-relationships-single

Grants

-- mysql
grant all on `x-relationships-single`.* to liolio@localhost ;
-- pg
\c "x-relationships-single"
grant all on database "x-relationships-single" to liolio;
grant all on schema "public" to liolio;
grant all on all tables in schema "public" to liolio;
grant all on all sequences in schema "public" to liolio;

Install

npm install -g node-gyp nw-gyp node-pre-gyp
npm install -g express-admin

# build sqlite3 for node@0.10.x
nvm use 10
npm install -g sqlite3@3.0.5

# build sqlite3 for node@0.12.x
nvm use 12
npm install -g sqlite3@3.0.5

# build sqlite3 for nw@0.8.6
cd express-admin-tests
npm install
npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=x64 --target=0.8.6

# run the tests
nw .