JSON Files
lexxexe
HOBBYOP

a year ago

i can use json files as database

Solved$10 Bounty

Pinned Solution

a year 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.

4 Replies

lexxexe
HOBBYOP

a year ago

N/A


a year ago

is that a question? 😭


a year 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


a year 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 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...