/RESTful-API-Example-on-Flutter

On this example, I used fake RESTful API. Before the run the project make sure configure all the fake RESTful API settings.

Primary LanguageDart

On this example, I used fake RESTful API. Before the run the project make sure configure all the fake RESTful API settings.

Getting started

- [Install and Configure Fake JSON Server] (https://github.com/typicode/json-server)

npm install -g json-server 
		
in the directory go to fake-json-server folder, open package.json and put your ip address
"scripts": {
	"run-server": "json-server --host your-local-ip-address db.json"
}, 
		
npm run run-server 

go to src -> service -> user_service.dart and put your ip address

final String localUrl = 'http://your-ip-address:3000/users';