Categorygithub.com/nadirbasalamah/go-gql-blogs
repositorypackage
0.0.0-20220721035744-f2bd8bc6230c
Repository: https://github.com/nadirbasalamah/go-gql-blogs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

go-gql-blogs

The blog application implemented in GraphQL with gqlgen.

How To Use

There are two branches in this repository:

  • local-storage for implementation with local storage.
  • main for implementation with MongoDB database.
  1. Clone the repository.

  2. If local-storage branch is chosen, run the application with this command.

go run server.go
  1. If main branch is chosen, copy the .env file.
cp .env.example .env
  1. Configure the MongoDB database configuration inside the .env file.

  2. Run the MongoDB database server or make sure the MongoDB database is online.

  3. Run the application with this command.

go run server.go
  1. Test the application with this command.
go test