Skip to content

audrastafursky/solace-candidate-assignment

Repository files navigation

Solace Candidate Assignment

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Install dependencies

npm i

Run the development server:

npm run dev

Database set up

The app is configured to return a default list of advocates. This will allow you to get the app up and running without needing to configure a database. If you’d like to configure a database, you’re encouraged to do so. You can uncomment the url in .env and the line in src/app/api/advocates/route.ts to test retrieving advocates from the database.

  1. Feel free to use whatever configuration of postgres you like. The project is set up to use docker-compose.yml to set up postgres. The url is in .env.
docker compose up -d
  1. Create a solaceassignment database.

  2. Push migration to the database

npx drizzle-kit push
  1. Seed the database
curl -X POST http://localhost:3000/api/seed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published