charades with ai: guess the prompt for the ai-generated image.
to access environment variables for mongo (and perhaps other env variables added there in the future) in dev, you'll need to join the railway project
- run
npm i -g @railway/cli
to install railway cli - make your account has been added to the railway project
- run
railway login
to authenticate - run
railway link
to pull up a list of projects, link to thecharades.ai
project
- make sure you're set up with railway cli
- run
yarn
to install dependencies - run
yarn dev
to compile and launch in dev mode - open http://localhost:3000 to access app in dev
- make sure you're set up with railway cli
- run
yarn
to install dependencies - run
yarn test
to run jest tests - run
yarn test:coverage
to see code coverage - make sure tests are passing before a pull request as there's a github action that runs tests on PRs
- make sure you're set up with railway cli
- run
yarn
to install dependencies - run
yarn generate
to run a script that generates 5 rounds of charades at a time - run
yarn test
to make sure the next several rounds are valid
uses act to test github actions workflows locally. this needs to be installed separately.
The following were used to build the app, check out the docs:
- React (https://reactjs.org/docs/getting-started.html)
- Next.js (https://nextjs.org/docs)
- Tailwind (https://tailwindcss.com/docs/installation)
- DaisyUI (https://daisyui.com/)
- Jest (https://jestjs.io/)
- Railway (https://railway.app/)