{"id":15593591,"url":"https://github.com/kasvith/simple-microservice-example","last_synced_at":"2025-08-18T13:33:08.354Z","repository":{"id":51292594,"uuid":"140860040","full_name":"kasvith/simple-microservice-example","owner":"kasvith","description":"A very simple microservice example with NodeJS, Python and Docker","archived":false,"fork":false,"pushed_at":"2024-06-20T06:16:51.000Z","size":169,"stargazers_count":23,"open_issues_count":1,"forks_count":53,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-28T01:22:40.686Z","etag":null,"topics":["bulma","docker","docker-com","jquery","microservice","microservice-example","microservices","microservices-application","microservices-architecture","nodejs","python3","webpack"],"latest_commit_sha":null,"homepage":null,"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/kasvith.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":"2018-07-13T14:54:49.000Z","updated_at":"2024-11-03T20:54:17.000Z","dependencies_parsed_at":"2024-10-16T02:41:23.331Z","dependency_job_id":"522b702f-47a6-4ab1-a474-edd1fc0c75f0","html_url":"https://github.com/kasvith/simple-microservice-example","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"fb8d0b1f94096607edab388d949640458addd52d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasvith%2Fsimple-microservice-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasvith%2Fsimple-microservice-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasvith%2Fsimple-microservice-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasvith%2Fsimple-microservice-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kasvith","download_url":"https://codeload.github.com/kasvith/simple-microservice-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230238281,"owners_count":18194988,"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":["bulma","docker","docker-com","jquery","microservice","microservice-example","microservices","microservices-application","microservices-architecture","nodejs","python3","webpack"],"created_at":"2024-10-03T00:20:32.391Z","updated_at":"2024-12-18T08:08:54.242Z","avatar_url":"https://github.com/kasvith.png","language":"JavaScript","readme":"# Simple Microservice Example\n\nA very simple microservice example with NodeJS, Python and Docker\n\n## Run the API gateway\n\n- Install `docker` and `docker-compose` according to your operating system\n\n- Clone the repository and navigate to it\n\n- Run `docker-compose up` to start the services\n\n- Try `GET http://YOUR_HOST:3000/api/status` to check whether application is running\n\n## Build the frontend\n\nThe application uses a frontend written with plain html with jQuery and to style with Bulma.\nThis is built with webpack. This default application is built assuming you are using the `localhost`.\n\nTo build this to fit your own **IP Address** please follow the steps before you running the `docker-compose up`\n\n- Install NodeJs on your system\n\n- Go to FrontendApplication directory\n\n- Run `npm install` or if you have yarn `yarn` to install packages\n\n- Now you need to set the API Gateway for this frontend application. It can be any host you have. \n    - Let's say you are hosting this application on `http://example.com` then your `API_GATEWAY` would be this one. \n    - If you are hosting in some machine with IP `123.324.345.1` then your `API_GATEWAY` would be your IP.\n\n- To pass this setting to webpack build you need to set an Environment Variable\n    - Windows : `set API_GATEWAY=http://YOUR_HOST`\n    - Linux/Max : `API_GATEWAY=http://YOUR_HOST`\n    * Remember no / at the end of the URL to get your web app work\n\n- Now you can do `npm run build` or `yarn build`\n\n- Check `dist/` folder for newly created index.html and the main.js\n\n- Now run the `docker-compose up` on the root folder of project and check `http://YOUR_HOST:8080` to see web app \n\n![image](https://user-images.githubusercontent.com/13379595/42726706-82eb0ae6-87b6-11e8-8456-d933b9dfa73b.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasvith%2Fsimple-microservice-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkasvith%2Fsimple-microservice-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasvith%2Fsimple-microservice-example/lists"}