This is a Golang-based backend API for managing companies and jobs, designed with the Gin framework and SQLx for database interactions. The API includes features for registering companies, finding companies by ID, creating jobs, and searching for jobs.
- Register new companies
- Find companies by ID
- Delete companies by ID
- Create new jobs
- Search for jobs with pagination and filtering
- POST /api/v1/companies: Register a new company
- GET /api/v1/companies/:id: Find a company by ID
- DELETE /api/v1/companies/:id: Delete a company by ID
- POST /api/v1/jobs: Create a new job
- GET /api/v1/jobs: Find jobs with optional keyword and company name filters
- GET /swagger/index.html: Access the Swagger UI for API documentation
-
Clone the repository:
git clone https://github.com/pramudya3/job-finder cd job-finder
-
Install dependencies:
go mod tidy
-
Ensure to connect with postgres database
-
Run the application:
go run ./app
-
Or you can use docker compose
docker compose build && docker compose up