{"id":18539077,"url":"https://github.com/simov/express-admin-tests","last_synced_at":"2025-05-15T02:13:48.180Z","repository":{"id":66028221,"uuid":"20587664","full_name":"simov/express-admin-tests","owner":"simov","description":"Express Admin Tests","archived":false,"fork":false,"pushed_at":"2023-02-13T12:18:27.000Z","size":178,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-26T09:41:50.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-06-07T07:05:11.000Z","updated_at":"2023-03-04T06:05:02.000Z","dependencies_parsed_at":"2023-03-16T02:16:40.175Z","dependency_job_id":null,"html_url":"https://github.com/simov/express-admin-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fexpress-admin-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fexpress-admin-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fexpress-admin-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fexpress-admin-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simov","download_url":"https://codeload.github.com/simov/express-admin-tests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259444,"owners_count":22040822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T19:46:09.045Z","updated_at":"2025-05-15T02:13:48.160Z","avatar_url":"https://github.com/simov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Express Admin Tests\n\n\u003e _Integration tests for [Express Admin]_\n\n## Environment\n\n- node \u003e= 14\n- npm\n- docker\n- docker-compose\n- nw\n\n## MySQL\n\n```bash\n# start MySQL database server (pick one)\ndocker-compose up mysql\ndocker-compose up mysql5\ndocker-compose up mariadb\n# login to the running container (pick one)\ndocker exec -it x-admin-mysql bash\ndocker exec -it x-admin-mysql-5 bash\ndocker exec -it x-admin-mariadb bash\n# login to mysql\nmysql -u root -p\n```\n```sql\n-- create database\ncreate schema `x-relationships-single` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;\ncreate schema `x-relationships-compound` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;\ncreate schema `x-data-types` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;\n```\n```bash\n# import schema\nmysql -p --user=root 'x-relationships-single' \u003c fixtures/x-relationships-single/mysql.sql\nmysql -p --user=root 'x-relationships-compound' \u003c fixtures/x-relationships-compound/mysql.sql\nmysql -p --user=root 'x-data-types' \u003c fixtures/x-data-types/mysql.sql\n```\n\n## PostgreSQL\n\n```bash\n# start PostgreSQL database server (pick one)\ndocker-compose up pg\ndocker-compose up pg9\n# login to the running container (pick one)\ndocker exec -it x-admin-pg bash\ndocker exec -it x-admin-pg-9 bash\n# login to psql\npsql -U postgres\n```\n```sql\n# create database\ncreate database \"x-relationships-single\";\ncreate database \"x-relationships-compound\";\ncreate database \"x-data-types\";\n```\n```bash\n# import schema\npsql -U postgres 'x-relationships-single' \u003c fixtures/x-relationships-single/pg.sql\npsql -U postgres 'x-relationships-compound' \u003c fixtures/x-relationships-compound/pg.sql\npsql -U postgres 'x-data-types' \u003c fixtures/x-data-types/pg.sql\n```\n\n## SQLite\n\n```bash\n# create database and import schema\nnode fixtures/sqlite-import.js x-relationships-single\nnode fixtures/sqlite-import.js x-relationships-compound\nnode fixtures/sqlite-import.js x-data-types\n```\n\n## Tests\n\nDownload [NW.js](https://nwjs.io/) - [v0.32.1](https://dl.nwjs.io/v0.32.1/nwjs-sdk-v0.32.1-linux-x64.tar.gz)\n\n```bash\n# extract the folder and add it to your path\nexport PATH=$PATH:$HOME/software/nwjs-sdk-v0.32.1-linux-x64:$PATH\n```\n\nClone this repo and:\n\n```bash\n# install test dependencies\nnpm install\n# update absolute paths set inside the config folder\nnode path.js\n# run test suite\nnw .\n```\n\nRun a configuration locally:\n\n```bash\n# pick a database and engine and start the admin\nnode start.js\n```\n\n## Diagrams\n\n[MySQL Workbench] can be used to preview the [database diagrams].\n\n\n  [Express Admin]: https://github.com/simov/express-admin\n  [MySQL Workbench]: https://www.mysql.com/products/workbench/\n  [database diagrams]: https://github.com/simov/express-admin-examples/blob/master/fixtures/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fexpress-admin-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimov%2Fexpress-admin-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fexpress-admin-tests/lists"}