-
Before you begin, ensure you have the following installed on your local machine:
-
Node 16V above
-
Postgres 14V above
First, clone the repository to your local machine:
bash
git clone https://github.com/OpenPecha/monlam-ai-tools.git
cd monlam-ai-tools
npm install
DATABASE_URL: set up a postgres database and provide the link here
MAX_TEXT_LENGTH_MT : max number text accepted in Machine translation
MAX_TEXT_LENGTH_TTS: max number of text supported in text to speech
AUTH0_CLIENT_ID : client id from auth0
AUTH0_CLIENT_SECRET :client secret from auth0
AUTH0_DOMAIN : domain name provided by auth0
AUTH0_CALLBACK_URL : callback url to where the auth0 should redirect
OPENAI_KEY : Chatgpt-api key (not required)
ORIGIN : domain name where the app is hosted
AWS_BUCKET_NAME : aws bucket name
AWS_ACCESS_ID: aws access key
AWS_SECRET_KEY :aws secret key
AWS_REGION: aws region
FEEDBUCKET_ACCESS : feedbucket access key (not required)
FEEDBUCKET_TOKEN :feedbucket token (not required)
API_URL : domain url for monlam api
API_ACCESS_KEY : token used for verification of api user
COOKIE_SECRET : session and cookie secret (can be anything not exposed)
after setting up DATABASE_URL in .env file
npx prisma migrate deploy
npm run dev
This starts your app in development mode, rebuilding assets on file changes.
First, build your app for production:
npm run build
Then run the app in production mode:
npm start
Now you'll need to pick a host to deploy it to.
If you're familiar with deploying node applications, the built-in Remix app server is production-ready.
Make sure to deploy the output of remix build
build/
public/build/