Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

401
Visualizações
How to host a json-server db in any cloud service

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.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda