I just finished an Angular project I was working for the last weeks, and since it was for educational purposes, I have all the data I need for the app into a db.json file in other project, which I host locally using JSON Server.
My data is pretty simple, the db.json file looks like this:
{
"users": [
{
"id": 1,
"user": "John Doe",
"email": "john.due@gmail.com"
}
],
"heroes": [
{
"id": "dc-batman",
"superhero": "Batman",
"publisher": "DC Comics",
"alter_ego": "Bruce Wayne",
"first_appearance": "Detective Comics #27",
"characters": "Bruce Wayne"
},
{
"id": "dc-superman",
"superhero": "Superman",
"publisher": "DC Comics",
"alter_ego": "Kal-El",
"first_appearance": "Action Comics #1",
"characters": "Kal-El"
},
]
}
I don't need to make any change to that .json file, my question is if I can host that file in any cloud service and access it the same way I am doing it, but instead of using localhost, calling it from the internet.
I need this because I want to deploy my Angular app, but it will not work if the json-server is not up, so it will show no data.