go-gql-blogs

command module
v0.0.0-...-f2bd8bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 12 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL