The Badges API is a service which the Zuri Portfolio calls to assign Badges to users. These badges are given to users after passing a skill assessment test. Admins have the ability to create badges to be assigned to users of the Zuri Portfolio.
Golang v >= 1.19
PostgreSQL v >= 15.0
- Install Go and PostgreSQL
- Clone the repo at https://github.com/hngx-org/demerzel-badges
cd
into the project directory- Create a .env file and fill PORT and PostgreSQL details using the .env.example format.
cp .env.example .env
PORT=3001
ENV=local
POSTGRES_USERNAME=
POSTGRES_PASSWORD=
POSTGRES_HOST=
POSTGRES_DBNAME=
POSTGRES_PORT=
- Run
go get
- Run
go run main.go
- Access the API endpoints from localhost with the port specified in step 4.
- Read the Documentation.md to check for available endpoints.
Your Repo's found at https://github.com/hngx-org/demerzel-badges So to work with Forks you basically:
- Fork your Team Repo to your personal Github account
- Pull the code back to your local Machine
- Checkout to your assignment branch
- Do your thing
- Push back to your Personal Github Repo. That'll be your 'ORIGIN' remote (not the 'UPSTREAM' remote)
- You head over to Github and Create a Pull request to the Main Repository's branch
- Remember that a Pull Request can contain multiple commits. That's basically it. Here's a video to help further.