amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

mock rest api locally

Open alexladerman opened this issue 5 years ago • 50 comments

Is your feature request related to a problem? Please describe. I want to be able to run both the frontend and backend locally, control with environment variables when to produce/consume mock data and have the urls map to the right environment. I don't use GraphQL!

Describe the solution you'd like amplify serve and mock -> frontend on localhost:3000 with env variables of mock && backend on localhost:3001 with env variables of mock

Describe alternatives you've considered writing my own bash script passing environment variables in to every backend function

alexladerman avatar Feb 11 '20 14:02 alexladerman