Issue tracker hobby project
Inspiration: "The 1 Coding Project Idea Guaranteed To Get You A Software Development Job" by Coder Foundry
- Clone this repo.
- Install Node.js
- Install pnpm
- Install PostgreSQL
- Create the issue-tracker-2024 database
- And then create
issuestable using the provided script (create-issues-table.sql) - You will need to configure the following environment variables for this app, depending on how you setup your PostgreSQL install. At minimum you will need to add
PG_USERandPG_PASSto thefrontend/.envfile.
PG_HOST defaults to 127.0.0.1
PG_PORT defaults to 5432
PG_DATABASE defaults to issue-tracker-2024
PG_USER defaults to undefined
PG_PASS defaults to undefined
PG_SSL defaults to true
- Run the following commands
pnpm install
pnpm run dev
- Open http://localhost:3000 in your browser.
The backend supplies the following API endpoints
GET /healthCheckalways returnsOKGET /issue/listreturns a list of the issuesGET /issue/{slug}returns a specific issuePOST /issue/newcreate a new issuePOST /issue/{slug}update an existing issueDELETE /issue/{slug}delete an issue
By default the app will directly connect to a PostgreSQL database using the Next.js API routes.
However you can configure the ISSUE_API_URL environment variable to use some other backend implementations that are provided in this repo:
All of the above implement the same API routes and function interchangeably.