This example server builds in all of Method's Node library to give you a working playground to try different requests.
- A machine with node and npm installed (this was written using node v21.1.0)
- Clone this repo
git clone https://github.com/ossiggy/method-node-sandbox.git cdinto the repo and runnpm install- Create a
.envfile in the root directory of this repo and provide the values listed inenv_example - Run the server with
npm run start
- This is to be used as a test server to run locally.
- If you wish to test the Method element, you can change the
entity_idinpublic/app.json line 40 and head to the URL you are running this on (ex:http://localhost:8080) to see the element rendered. Also ensure that theenvon line 2 of that file matches theenvyou are testing in.