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.
We have a new requirement for endpoints to manage user stories inside features
New endpoints:
POST /features/story
GET /features/{feature_uuid}/story
GET /features/{feature_uuid}/story/{story_uuid}
DELETE /features/{feature_uuid}/story/{story_uuid}
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)
Run "go run ." to run the backend API that connects to the DB and creates the objects
Open a new terminal window and run "npx cypress run" this starts to run the tests
Your job is to create the routes, handler functions and db changes in order for the test to pass. If you find any issues or typos in the cypress tests please let the creator of the issue know.
Before committing your changes make sure the cypress tests pass.
Acceptance Criteria
[ ] Tests are passing using "npx cypress run"
[ ] I have rebased and tested locally before submitting my PR
[ ] I can submit a pr within 2 days of taking the bounty
Context
We have a new requirement for endpoints to manage user stories inside features
New endpoints: POST /features/story GET /features/{feature_uuid}/story GET /features/{feature_uuid}/story/{story_uuid} DELETE /features/{feature_uuid}/story/{story_uuid}
Add Table to DB: feature_story
uuid (text) feature_uuid (text) description (text) priority (integer) created (datetime) updated (datetime) created_by (text) updated_by (text)
Remember to fill the last 4 columns with the corresponding data.
Design
clone branch https://github.com/stakwork/sphinx-tribes/tree/feature-add-user-stories
Make sure you are running posgresql locally
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)
Your job is to create the routes, handler functions and db changes in order for the test to pass. If you find any issues or typos in the cypress tests please let the creator of the issue know.
Before committing your changes make sure the cypress tests pass.
Acceptance Criteria