This Repo contains all the code for https://www.imdbgraph.org. The website is written in React/Typescript and uses Next.js as the main framework.
- Install NVM.
- Windows: https://github.com/coreybutler/nvm-windows
- Linux/macOS: https://github.com/nvm-sh/nvm
- Install Node.js lts (version 22.x):
nvm install --lts && nvm use --lts
- Install pnpm.
corepack use pnpm@latest-10
- Install dependencies:
pnpm install
This projects relies on a postgres database. To run the app you will need either a local postgres database or a connection string to a remote database.
To setup database credentials, copy the following into a new .env file with your credentials.
DATABASE_URL="postgresql://localhost:5432/postgres?user=postgres&password=postgres"
Then run the server with: pnpm run dev
. Open http://localhost:3000 with your browser to see the website. You can start editing any of the pages. It will auto-update as you edit the file without having to restart the server or refresh the browser page.
All linting for this project is done through ESLint and all formatting checked using Prettier. These rules are also checked through the CI/CD whenever changes are pushed to Gitlab.
To run tests use the command pnpm test
. This project uses jest and playwright as its testing framework. All tests
located in tests folder. All tests are run through the CI/CD whenever changes are pushed to Gitlab.
All changes pushed to main are automatically deployed to production using Vercel. Any changes to a branch other than main are deployed to a staging URL for previewing changes before production.