{"id":22995675,"url":"https://github.com/eranshmil/ionic-express-assignment","last_synced_at":"2026-04-14T14:31:27.489Z","repository":{"id":55083645,"uuid":"152998598","full_name":"eranshmil/ionic-express-assignment","owner":"eranshmil","description":"An Ionic \u0026 Express application that redirect the user to the selected/default url.","archived":false,"fork":false,"pushed_at":"2021-01-12T01:40:54.000Z","size":3183,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-04T07:03:56.711Z","etag":null,"topics":["angular","express","ionic","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/eranshmil.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}},"created_at":"2018-10-14T17:11:18.000Z","updated_at":"2018-12-20T12:16:29.000Z","dependencies_parsed_at":"2022-08-14T11:30:57.263Z","dependency_job_id":null,"html_url":"https://github.com/eranshmil/ionic-express-assignment","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/eranshmil/ionic-express-assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eranshmil%2Fionic-express-assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eranshmil%2Fionic-express-assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eranshmil%2Fionic-express-assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eranshmil%2Fionic-express-assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eranshmil","download_url":"https://codeload.github.com/eranshmil/ionic-express-assignment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eranshmil%2Fionic-express-assignment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31801229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angular","express","ionic","nodejs"],"created_at":"2024-12-15T05:30:14.149Z","updated_at":"2026-04-14T14:31:27.467Z","avatar_url":"https://github.com/eranshmil.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ionic \u0026 Express.js Assignment\n\nAn Ionic \u0026 Express application that redirect the user to the selected/default url.\n\n## Live server\n\n```\nhttps://ionic-express-assignment.herokuapp.com/\n```\n\n## Installation\n\n```sh\nyarn\n# or\nnpm install\n```\n\n## Usage\n\n```sh\n# run ionic client\nyarn dev:client\n# or\nnpm run dev:client\n\n# run express server\nyarn dev:server\n# or\nnpm run dev:server\n\n# run both\nyarn dev\n#or\nnpm run dev\n\n# run ionic client using production api\nyarn prod\n# or\nnpm run prod\n```\n\n## Running server with docker\n\nIf you don't have MongoDB on your environment, you could use the docker.\n\nFirst, create docker machine and enable port forwarding to your host:\n\n```bash\ndocker-machine create assignment\neval $(docker-machine env assignment)\n\nvboxmanage controlvm assignment natpf1 \"3000,tcp,127.0.0.1,3000,,3000\"\nvboxmanage controlvm assignment natpf1 \"27017,tcp,127.0.0.1,27017,,27017\"\n```\n\nThen use the following commands to run/stop the containers:\n\n```bash\n# run first time\ndocker-compose up --build\n\n# and then\ndocker-compose up\n\n# stop\ndocker-compose down\n```\n\n## Endpoints\n\nBase url path: /api/v1\n\n| Method |   Path    |                    Description                    |\n| :----: | :-------: | :-----------------------------------------------: |\n|  POST  |   /url    |          url: string, redirect: boolean           |\n|  GET   |    /db    | Seed the collection with default url (google.com) |\n|  GET   | /db/clear |          Clear the collection from urls           |\n\n## Built with\n\n|                                       Package                                        | Version |\n| :----------------------------------------------------------------------------------: | :-----: |\n|                  [Express.js](https://github.com/expressjs/express)                  |  4.\\*   |\n|                  [Socket.IO](https://github.com/socketio/socket.io)                  |  2.\\*   |\n|                  [Mongoose](https://github.com/Automattic/mongoose)                  |  5.\\*   |\n|     [express-validator](https://github.com/express-validator/express-validator)      |  5.\\*   |\n|             [response-time](https://github.com/expressjs/response-time)              |  2.\\*   |\n|                    [Angular](https://github.com/angular/angular)                     | 5.2.11  |\n|             [ng-socket-io](https://github.com/bougarfaoui/ng-socket-io)              |  0.2\\*  |\n|                     [Ionic](https://github.com/ionic-team/ionic)                     |  3.9.2  |\n| [cordova-plugin-inappbrowser](https://github.com/apache/cordova-plugin-inappbrowser) | 3.0.\\*  |\n\n## Developed under\n\n| Platform  |  Version   |\n| :-------: | :--------: |\n|   macOS   |  10.13.6   |\n|  NodeJS   |   8.11.1   |\n|    npm    |   6.1.0    |\n|   Yarn    |   1.9.4    |\n|  Cordova  |   8.1.2    |\n| Ionic CLI |   4.2.1    |\n|  Docker   | 18.06.1-ce |\n|  MongoDB  |   4.0.3    |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feranshmil%2Fionic-express-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feranshmil%2Fionic-express-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feranshmil%2Fionic-express-assignment/lists"}