Skip to content

Template for the Purple Dot code exercise interview

Notifications You must be signed in to change notification settings

purple-dot/code-exercise

Repository files navigation

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.

About

Template for the Purple Dot code exercise interview

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published