Tech Stack · Deploy Your Own ·
- Convex for the database and cloud functions
- Next.js App Router for the framework
- Together Inference for the LLM (Mixtral)
- Together Embeddings for the embeddings for search
- Convex File Storage for storing stories audio
- Convex Vector search for vector search
- Replicate for Whisper transcriptions
- Clerk for user authentication
- Tailwind CSS for styling
You can deploy this template by setting up the following services and adding their environment variables:
- Run
npm install
to install dependencies. - Run
npm run dev
. It will prompt you to log into Convex and create a project. - It will then ask you to supply the
CLERK_ISSUER_URL
. To do this:- Make a Clerk account.
- Copy the API keys into
.env.local
. - Do steps 1-3 here and copy the Issuer URL.
It should look something like
https://some-animal-123.clerk.accounts.dev
. - Add
CLERK_ISSUER_URL
to your Convex Environment Variables (deep link also available in your terminal). Paste the Issuer URL as the value and click "Save".
- Now your frontend and backend should be running and you should be able to log in but not record.
- Make a Together account to get your API key.
- Make a Replicate account to get your API key.
- Save your environment variables in Convex as
REPLICATE_API_KEY
andTOGETHER_API_KEY
.
[ ] Deploy for external usage under 1851labs domain [ ] Revamp UX to store "stories" [ ] Add button to turn story into joke [ ] Add button to turn story into limrick (poem) [ ] Change the images and graphics to plottwist screen captures
- Step #1 - Local setup following
Local "deployment"
above - Step #2 - AWS Amplify Deployment
- Follow Amplify "Existing App" flow to connect to repo
- Set
Build Settings
image to Linux2023 - Setup the environment variables so the build works: https://docs.aws.amazon.com/amplify/latest/userguide/environment-variables.html
- Grab from .env.local
- Setup the environment variables so deployed app has access to them: https://docs.aws.amazon.com/amplify/latest/userguide/ssr-environment-variables.html
- This will pull the env vars set during build and write them to .env.production before running the app
- Step #3 - Custom sub domain for 1851labs.com