Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.8 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.8 KB

Purple Dot Code Exercise

We provide this template to save you time on setting up some basics. You are welcome to change anything you like in this exercise template.

For your convenience this template is set up with Next.js & a SQLite database. You don't have to use these, you can use any tools you like but the stack should be React or Vue backed by a relational database.

Getting Started

Please do this ahead of time for your interview.

Setting Up

There are 3 options you can choose from:

  1. Use GitHub Codespaces.
  2. Use a local Devcontainer.
  3. Run everything locally.

Codespaces

  1. Click the green <> Code button at the top of the page.
  2. Create a new Codespace in this repository.
  3. Run npm install in the terminal.
  4. Run npm run dev to start the Next.js dev server.

Local Devcontainer

  1. Check this respository out locally.
  2. Open the folder in VSCode.
  3. When prompted, choose to open the Devcontainer. It will automatically build and open it.
  4. Run npm install in the terminal.
  5. Run npm run dev to start the Next.js dev server.

Local Setup

  1. Install Docker
  2. Install Node.js 20. If you're using OS X or Linux we recommend using nvm
  3. Run npm install in the terminal.
  4. Run npm run dev to start the Next.js dev server.

Commands

  • npm run dev to start the Next.js development server
  • npm run lint to account for all linting steps
  • npm run test to run all any unit tests.
  • npx prisma migrate deploy to run migrations against the database.
  • npx prisma migrate dev to create new migrations.
  • npx prisma generate to regenerate the Prisma bindings.