Make sure to install the dependencies
yarn install
And copy the .env.example
to .env
cp .env.example .env
Fill your .env
with SECRET_COOKIE_PASSWORD
with a 32 character string to use as a session secret.
All the cosmos DB information will be necessary, to store the information from the app.
COSMOS_DB_URI=
COSMOS_DB_KEY=
COSMOS_DB_NAME=
COSMOS_CONTAINER_NAME=
The application uses a storage to temporary save the documents to translate, the variables look like.
STORAGE_ACCOUNT_BLOB_URI=
STORAGE_ACCOUNT_NAME=
STORAGE_ACCCOUNT_KEY=
Fill your .env
with all the cognitive services variables:
TRANSLATION_SERVICE_NAME=
TRANSLATION_SERVICE_KEY=
FORM_RECOGNIZER_KEY=
FORM_RECOGNIZER_ENDPOINT=
LANGUAGE_SERVICE_KEY=
LANGUAGE_SERVICE_ENDPOINT=
SPEECH_SERVICE_KEY=
SPEECH_SERVICE_ENDPOINT=
Start the development server on http://localhost:3000
yarn dev
Build the application for production:
yarn build