Skip to content

anujagrawal699/GraphQL-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Job Listing Database

Project Description

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.

Features

  • MongoDB integration
  • GraphQL API support
  • CRUD operations for job listings
  • Environment-based configuration

Setup

Install dependencies

go mod tidy

Create a .env file:

MONGODB_URI=mongodb://localhost:27017
DATABASE_NAME=joblistings
COLLECTION_NAME=jobs

Run the application

go run server.go

Key Components

  • database/database.go: MongoDB connection and job listing operations.
  • graph/schema.graphqls: GraphQL schema definition.
  • graph/model/models_gen.go: Generated model structures.

Development

  • Requirements:
    • Go 1.16+
    • MongoDB 4.0+
    • GraphQL knowledge recommended.

Contributing

  1. Fork the repository.
  2. Create a feature branch.
  3. Commit changes.
  4. Push and create a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages