arn-server

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 https://ngrok.com/download

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 https://3539-89-159-3-115.ngrok.io

Now open webhook config in Lokalise https://app.lokalise.com/apps/9326262863a1e1d47aafa7.26825397/rest-webhook\

In Webhook URL put your ngrok url like this https://3539-89-159-3-115.ngrok.io/i18n/:projectId

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=https://s3-eu-central-1.amazonaws.com/lokalise-live-lok-app-main-assets

Finally, to test your webhook got to download page for your project https://app.lokalise.com/download/9326262863a1e1d47aafa7.26825397/ and click in Build Button

Learn More

To learn Fastify, check out the Fastify documentation.

Generated using TypeDoc