JSON Files
lexxexe
HOBBYOP

8 months ago

i can use json files as database

Solved$10 Bounty

4 Replies

lexxexe
HOBBYOP

8 months ago

N/A


dev
MODERATOR

8 months ago

is that a question? 😭


dev
MODERATOR

8 months ago

if you meant it as a question then I suppose you can but I don't recommend it, you should definitely use a proper database even though using json is super based

if you do have to use json for whatever reason then just make sure you're storing it inside of a volume


mdelgado
PRO

8 months ago

Hi @lexxexe, how are you? I guess your question comes from the use of json-server or some similar library to simulate a mock.

If this is your case, yes you could use it, but there are templates available that make your work easier in this case, for example Restapify, that allows you to mock apis from json files.

I share with you the template link.

https://railway.com/template/HK3yyB?referralCode=mexdelgado

Greetings.


Status changed to Solved brody 8 months ago


Loading...