Developer Quickstart

Thanks for contributing to UIUC.chat ❤️

Start here

chevron-rightBackground info on Key accountshashtag

Set up Infiscal for Environment Variables

circle-exclamation

Instead of sharing .env files manually, we use Infiscal as a central password manager for devs. We use its CLI and web interface.

See the CLI install docsarrow-up-right for Linux/Windows instructions. Or the CLI usage docsarrow-up-right.

# install
brew install infisical/get-cli/infisical

Where are my .env variables?

If it's running on localhost, the env vars come from Infisical, our shared secrets manager. You can add new env vars at env.uiuc.chatarrow-up-right

If it's in production, or any cloud service, the env vars are stored directly in that cloud service. Those include Vercel, Railway, Beam.cloud and more. You can edit env vars in those services, just be careful.

Frontend Setup

Frontend repo: https://github.com/Center-for-AI-Innovation/uiuc-chat-frontendarrow-up-right

chevron-right❌ Seeing an error? [email protected]: Permission denied (publickey).hashtag

If you see an error like this:

Then you have to add your local sshkey to your Github account here: https://github.com/settings/keysarrow-up-right

Finally, attempt cloning the repo again.

(1/2) Install dev dependencies

circle-exclamation

Use Node version 18.xx LTS

Install dev dependencies

(2/2) Set up secrets

Last step: start dev server!

You will need to run the below command once for the initial setup

Run the app on your local machine

npm run dev is the most important command you'll use every dev session.


Backend Setup

Backend repo: https://github.com/Center-for-AI-Innovation/ai-ta-backendarrow-up-right

chevron-right❌ Seeing an error? [email protected]: Permission denied (publickey).hashtag

If you see an error like this:

Then you have to add your local sshkey to your Github account here: https://github.com/settings/keysarrow-up-right

Finally, attempt cloning the repo again.

(1/2) Install dev dependencies

Use a python virtual environment, here I'll use conda.

Use python 3.10.

  1. Create and activate Conda env

  1. Install dependencies

(2/2) Set up secrets

circle-exclamation

Last step: start dev server!

Now you can write new endpoints in ai-ta-backend/main.py and call them using Postmanarrow-up-right.

Thanks! For any questions at all just email me ([email protected]).

Last updated