4. Running your site locally
TL;DR: In this section, you'll learn how to run LoopGate on your local computer, and how to push changes you make to your GitHub repository.
Open the terminal in your code editor.
Type
npm install
, and hit enter.Type
npm run dev
, and hit enter.
Your app should now be running locally on your computer! 🚀
You can access it by opening a browser and going to the following URL: http://localhost:3000

Verify your .env :
Now your LoopGate is running on your local machine, it's time to check the .env
file.
Go to the following url: http://localhost:3000/api/env-status.
This checks the secrets in your .env
file: if these are misconfigured, LoopGate will not work.
Publishing your changes:
If you've made changes to the config, you'll probably want your users to see this too.
Follow these steps to update your code in GitHub:

Check the files you'd like to update and 'stage' them.
'Commit' them by inputting a concise message of what you updated.
'Push' them to your GitHub repository by clicking 'Push'.
Last updated