stakwork / sphinx-tribes

Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
33 stars 60 forks source link

Add Endpoint to get repo and delete repo [feature-add-repos-to-workspaces-modify-delete] #1651

Closed fvalentiner closed 5 months ago

fvalentiner commented 5 months ago

Context

We have a new requirement for endpoints to manage repositories in workspaces

Design

  1. clone branch features-add-repos-to-workspaces https://github.com/stakwork/sphinx-tribes/blob/feature-add-repos-to-workspaces-modify-delete

  2. Make sure you are running posgresql locally

  3. Create file .env with the following content PORT=5005 DATABASE_URL=postgres://postgres:asdf@localhost:5432/ebdb?sslmode=disable

Change DATABASE_URL to connect to your local DB (it could be an empty db)

  1. Run "go run ." to run the backend API that connects to the DB and creates the objects
  2. Open a new terminal window and run "npx cypress run --spec 'cypress/e2e/02_repositories.cy.ts'" this starts to run the tests image

Your job is to create the routes, handler functions and db changes in order for the test to pass.

Before committing your changes make sure the cypress tests pass.

Acceptance Criteria

AbdulWahab3181 commented 5 months ago

@fvalentiner Could you please assign me?