Note: This repository is based on the finished state of the nextjs.org/learn course.
Setup guide:
- Fork this repository or use it as a template or clone with
pnpx degit https://github.com/travlrd-com/final-example.git. - Run
pnpm install - Follow the steps outlined here: https://nextjs.org/learn/dashboard-app/setting-up-your-database
- Initialize a new repository and publish it to Github (also make sure to set the repo to public)
- Sign into your Vercel account and deploy your repository as a new project
- Install the Vercel CLI: https://vercel.com/docs/cli
- Run
vercel linkto link your project to the Vercel CLI - Create a new Postgres database on Vercel
- Connect the database to your project via the dashboard (this will automatically add the postgres environment variables to the project)
- Upload the remaining two environment variables to the Vercel project settings from the
.env.examplefile - Run
vercel env pull .env.development.localto make the latest environment variables available to your project locally - Run
vercel devto start the development server
- Seed the database by opening
/seedin your browser. This will create a user account that you can use to log in to the dashboard - Complete the interview task
- Send us the link to your GitHub repo and the link to your deployed app (don't forget to set to public both the GitHub repo and the Vercel deployment, and make sure the environment variables are not tied to localhost)
Your assessment will be tested via the Vercel deployment link that you'll send us, so please test your app thoroughly via the deployment as well.