Available Scripts

In the project directory, you can run:

npm run dev

To start the app in dev mode.
Open http://localhost:3000 to view it in the browser.

npm start

For production mode

npm run test

Run the test cases.

For Lokalise webhook dev mode

First install ngrok

Start your server in dev mode.

npm run dev

And start ngrok

ngrok http 3000

You get a forwarding of your localhost:3000 like this

Now open webhook config in Lokalise\

In Webhook URL put your ngrok url like this

And copy your X-Secret form the same page and put the ENV variable LOKALISE_WEBHOOK_ENDPOINT_SECRET=LocaliseWebHookEndPointSecret in your .env file

And in the same file .env put LOKALISE_S3_URL=

Finally, to test your webhook got to download page for your project and click in Build Button

Learn More

To learn Fastify, check out the Fastify documentation.

Generated using TypeDoc