Giter Site home page Giter Site logo

todolist.go's Introduction

Todolist

This repository provides a base project to implemet Todolist application.

docker-compose.yml provides Go 1.17 build tool, MySQL server and phpMyAdmin.

Dependencies

How to run the application

First, you need to start Docker containers.

$ docker-compose up -d

This command will take time to download and build the containers.

Now you can start the application with the following command.

$ docker-compose exec app go run main.go

You can also execute go run main.go directly if you have Go development tools on your machine, but you need to setup the configuration to connect the application with MySQL server.

When you finish exercise, please don't forget to stop the containers.

$ docker-compose down

Advanced: How to initialize database

When you modify the database schema, you will need to discard the current DB volumes for creating a new one. It will be easier to rebuild everything than to rebuild only DB container. Following command helps you to do it.

$ docker-compose down --rmi all --volumes --remove-orphans
$ docker-compose up -d

todolist.go's People

Contributors

aya-se avatar dependabot[bot] 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.