For the people, By the people
https://us-central1-tech-for-cities.cloudfunctions.net/api
To publish micro app Click Here
- Must be a registered user of
Hello Chennai
- Should support Tamil, English and Tanglish
- Should provide Micro-app icon url, app url, title and description
- Download signin.html (should be placed along with index.html) from the repository and add to app root, it is required if you would like to access data from platform.
Within your micro-app, you can access the user information anywhere using the below code snippet.
let userInformation = localStorage.getItem("user");
Sample Micro App : Demo Micro-App
- While opening the micro app, initial hit will goes here :
https://tech-for-cities.web.app/signin.html?token=lzc1FLB9GoWA28E2jcUf5agiJj12
- Once the token is validated, it will be redirected here :
https://tech-for-cities.web.app
URL | Method |
---|---|
/position | POST |
Get ward and zone information by providing latitude and longitude.
{
"lat" : "13.1133903",
"long" : "80.2871213"
}
{
"data": {
"wardNo": "51",
"zoneInfo": "Zone 5 Royapuram"
}
}