A lightweight Go-based GraphQL API for managing job listings using MongoDB. This project provides a simple, efficient backend for creating, reading, updating, and deleting job postings.
- MongoDB integration
- GraphQL API support
- CRUD operations for job listings
- Environment-based configuration
go mod tidy
MONGODB_URI=mongodb://localhost:27017
DATABASE_NAME=joblistings
COLLECTION_NAME=jobs
go run server.go
database/database.go
: MongoDB connection and job listing operations.graph/schema.graphqls
: GraphQL schema definition.graph/model/models_gen.go
: Generated model structures.
- Requirements:
- Go 1.16+
- MongoDB 4.0+
- GraphQL knowledge recommended.
- Fork the repository.
- Create a feature branch.
- Commit changes.
- Push and create a pull request.