Create a REST API Using Angular and JSON Server

Create a full REST API in Angular for prototyping and mocking back-end services in no time

photo of computer keyboard
photo of computer keyboard
Photo by Anas Alshanti on Unsplash

Creating the Project

Installing JSON Server

Creating Data for the API

photo of an angular project folder structure
photo of an angular project folder structure
project folder structure
{
"config":[
{id:"1","name": "gain","value": "100"},
{id:"2","name": "max-gain","value": "200"},
{id:"3","name": "serial-output-format","value": "nmea"},
{id:"4","name": "baud-rate","value": "9600"},
{id:"5","name": "agc-enabled","value": "20"},
{id:"6","name": "footprint-offset","value": "10"}
]
}

Running the Server

Conclusion

Written by

I develop software by profession. My interests include: history, economics, politics & enterprise-architecture. I am a child of God.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store