Code Monkey home page Code Monkey logo

my-todo-app's Introduction

Building a TO-DO List app Build status

In this project, we aim to build a set of REST APIs, where we can track our todo lists. As a user, we would have access to create, update and delete tasks to list, as well as we should be able to see all the tasks in list. A task will have due date, respective status and created date with it.

This REST API can further be integrated with a UI (coming up) for better visualizations.

Technology and libraries used

  1. Go v1.15.2
  2. Fiber v2.3.0 (for Http requests)
  3. Viper v1.7.1 (for config management)
  4. Zap v1.16.0 (for logging)
  5. mysql v1.5.0 (for sql driver)
  6. squirrel v1.5.0 (for sql query building)
  7. go-sqlmock v1.5.0 (for sql tests)

Project Structure

  • config
    • appConfig.go
  • domain
    • task.go
    • constants.go
    • scenario.go
  • services
    • taskService.go
    • taskRepositoryInterface.go
    • taskService_test.go
    • taskServiceBenchmark_test.go
  • repository
    • taskRepository.go
    • taskRepository_test.go
    • taskRepositoryBenchmark_test.go
  • testUtils
    • constants.go
    • mocks.go
    • scenarios.go
  • main.go
  • config.yaml

Testing mechanisms:

  1. Run all tests: go test -v ./...
  2. Run benchmark tests: go test -bench .
  3. Run benchmark with memory profiling: go test -bench . -benchmem
  4. Run specific tests: go test -run TestCaseName

my-todo-app's People

Contributors

rrupeshranjan avatar

Stargazers

zw avatar  avatar

Watchers

 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.