{"id":13687497,"url":"https://github.com/simov/express-admin-examples","last_synced_at":"2025-04-09T17:38:08.121Z","repository":{"id":8646058,"uuid":"10296275","full_name":"simov/express-admin-examples","owner":"simov","description":"Express Admin Examples","archived":false,"fork":false,"pushed_at":"2023-02-13T12:22:38.000Z","size":337,"stargazers_count":77,"open_issues_count":11,"forks_count":35,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-24T09:47:06.131Z","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}},"created_at":"2013-05-26T10:08:10.000Z","updated_at":"2024-04-08T01:58:40.000Z","dependencies_parsed_at":"2024-01-17T06:30:32.043Z","dependency_job_id":"50192425-77bd-44c0-946a-133f93b0fb4b","html_url":"https://github.com/simov/express-admin-examples","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-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fexpress-admin-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fexpress-admin-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fexpress-admin-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simov","download_url":"https://codeload.github.com/simov/express-admin-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248078604,"owners_count":21044141,"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-08-02T15:00:55.630Z","updated_at":"2025-04-09T17:38:07.840Z","avatar_url":"https://github.com/simov.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n# Express Admin Examples\n\n\u003e _Examples for [Express Admin]_\n\n## Environment\n\n- node \u003e= 14\n- npm\n- docker\n- docker-compose\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-admin-examples` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;\n```\n```bash\n# import schema\nmysql -p --user=root 'x-admin-examples' \u003c fixtures/mysql/schema.sql\nmysql -p --user=root 'x-admin-examples' \u003c fixtures/mysql/insert.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-admin-examples\";\n```\n```bash\n# import schema\npsql -U postgres 'x-admin-examples' \u003c fixtures/pg/schema.sql\npsql -U postgres 'x-admin-examples' \u003c fixtures/pg/insert.sql\n```\n\n## SQLite\n\n```bash\n# create database and import schema\nnode fixtures/sqlite-import.js\n```\n\n## Examples\n\n```bash\n# install test dependencies\nnpm install\n# update absolute paths set inside the config folder\nnode path.js\n# start the admin\nnode start.js mysql # or pg, sqlite\n```\n\nNavigate to http://localhost:3000 user `admin` pass `1234abCD`\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/x-admin-examples.mwb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fexpress-admin-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimov%2Fexpress-admin-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fexpress-admin-examples/lists"}