Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create json server in github.io

I made an angularJS application and it runs form github.io. But I need to use REST API to handle data. I use json-server at my localhost. Is it possible to create and use json-server in github?

like image 501
Sajeeb Ahamed Avatar asked Jul 28 '26 02:07

Sajeeb Ahamed


1 Answers

I know its old question but I'll still post an answer here just in case someone else wants it.

It is possible to have json-server running in Github pages. Here is the link [https://my-json-server.typicode.com/][1]

Basically create a db.json file in your repository just like you do in the local system. you can access your api with https://my-json-server.typicode.com// as your your root URL.

like image 144
bumchickbum97 Avatar answered Jul 29 '26 19:07

bumchickbum97



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!