Git Product home page Git Product logo

go-todo's Introduction

Docker Cloud Build Status

Docker Image Size (latest by date)

Docker Pulls

GitHub go.mod Go version

Go

General info

Graphql api for crud operations of todo app using golang, mongodb atlas as db.

Installation

Docker Instructions

docker pull sahindagdelen/golangtodo

MongoDb Atlas configuration : Mongodb connection string must be modified with username and password. , Dns errors might occur when running application, cd /etc sudo resolv.conf modify your dns to 8.8.8.8 You should also add your ip to whitelist on mongodb atlas admin panel network access tab.

Features

  • Golang graphql api (CRUD operations)
  • Graphiql implementation added. (http://localhost:8080/api/graphiql)
  • Modularized golang app. (go.mod)
  • Package structure edited complying with golang package structure standarts.
  • Docker image size kept at minimum.
  • Multistage docker file.
  • Mongo DB Atlas used as database.
  • Properties read from config file.

To-do list:

  • Clean code refactor.

Screenshots

Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot

Status

Project is: in progress , more features will be developed and integrated into the repo.

Inspiration

https://morioh.com/p/82b11315afa1

https://github.com/graphql-go/graphql/blob/master/examples/crud/main.go

https://www.bradcypert.com/using-mongos-objectids-with-go-graphql/

https://github.com/graphql-go/graphql/blob/62a7bb0a9839309631e20fc4ed032cbf00f88544/examples/http-post/main.go#L20

https://medium.com/@chemidy/create-the-smallest-and-secured-golang-docker-image-based-on-scratch-4752223b7324

https://levelup.gitconnected.com/graphql-with-go-simple-server-tutorial-8678dbba20b9

https://medium.com/@benbjohnson/structuring-tests-in-go-46ddee7a25c

https://medium.com/@matryer/5-simple-tips-and-tricks-for-writing-unit-tests-in-golang-619653f90742

https://medium.com/golang-learn/go-project-layout-e5213cdcfaa2

https://github.com/motty93/Golang/tree/424e25c26b2313ef991552b9d978426b7caa417b/youtube/mongo_unit_test

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Contact

Created by @sahindagdelen - feel free to contact me!

License

MIT

go-todo's People

Contributors

sahindagdelen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.