All Projects → xtrinch → go-react-todo

xtrinch / go-react-todo

Licence: GPL-2.0 License
Todo REST API written in Go, React frontend client, setup using docker & docker-compose.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to go-react-todo

crud todo app
Create a To-do List Flutter app managing CRUD with Firebase, using RiverPod as state management and dependency injection
Stars: ✭ 35 (-10.26%)
Mutual labels:  todo-app
ToDoApp
📱My android playground app - Simple and Fastest todo app - developing to cover most android concepts, simple logic can make me focus more on framework
Stars: ✭ 28 (-28.21%)
Mutual labels:  todo-app
WeekToDoWeb
WeekToDo is a free minimalist weekly planner app focused on privacy. Schedule your tasks and projects with to do lists and a calendar. Available for Windows, Mac, Linux or online.
Stars: ✭ 48 (+23.08%)
Mutual labels:  todo-app
todo
🤖 🚀 I created Todo. Hope you like it and enjoy the open source
Stars: ✭ 16 (-58.97%)
Mutual labels:  todo-app
Xamarin-ToDoApp
Todo App is a simple to do app developed with Xamarin
Stars: ✭ 74 (+89.74%)
Mutual labels:  todo-app
flawesome
Productivity Tool
Stars: ✭ 56 (+43.59%)
Mutual labels:  todo-app
Tasky
Tasky is a task management app made with SwiftUI.
Stars: ✭ 22 (-43.59%)
Mutual labels:  todo-app
recoil-todo-list
A simple todo list app, built using Recoil.
Stars: ✭ 15 (-61.54%)
Mutual labels:  todo-app
To-Do App
A Simple To-Do App With Js
Stars: ✭ 21 (-46.15%)
Mutual labels:  todo-app
Todo-List
✔️ Create to-do lists to easily manage your ideas and work.
Stars: ✭ 30 (-23.08%)
Mutual labels:  todo-app
noaftodo
NOAFtodo - an ncurses TODO-manager No One Asked For
Stars: ✭ 15 (-61.54%)
Mutual labels:  todo-app

go-react-todo

- Todo REST API in Go
- React frontend client with Redux.
- Setup with docker & docker-compose.

Database library for postgres is Gorp, livereloading goes to codegangsta/Gin, HTTP framework used is gin-gonic/gin.

Docker-compose file contains the definition for three containers - database (postgres), backend (Go) and frontend (React).

See it in action: http://go-react-todo.trina.si/

Requirements

  • docker
  • docker-compose

Development setup:

$ docker-compose up

Find your docker-machine IP by running

$ docker-machine env default

Go todo API (backend) can be accessed at port 8080, webpack-dev-server (react frontend) at 9000. Requests from webpack-dev-server are proxied to the Go container by webpack conifig. Live reloading is provided by codegangsta/Gin.

Production setup:

In production livereloading of Go code and a frontend container are not needed. There are now only three containers: postgres database, go backend and a nginx container. A separate docker-compose file is used, as seen below. Run the following scripts in your cloned git directory:

# will create build/ directory in ../nginx/, where it is then 
# mounted into nginx container to be served as static files
$ cd client/ && npm run-script build 
$ cd ../ && docker-compose -f docker-compose.prod.yml up -d

You server container will be listening at port 8002 as exposed in docker-compose.prod.yml.

API endpoints

  • GET api/v1/todos/
  • GET api/v1/todos/:id
  • POST api/v1/todos
  • PUT api/v1/todos/:id
  • DELETE api/v1/todos/:id
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].