todo-app

module
v0.0.0-...-28263db Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT

README

todo-app

A todo app written in Golang, MongoDB, and React.

.
├── LICENSE
├── README.md
├── client
│   ├── README.md
│   ├── node_modules
│   ├── package-lock.json
│   ├── package.json
│   ├── public
│   │   ├── favicon.ico
│   │   ├── index.html
│   │   ├── logo192.png
│   │   ├── logo512.png
│   │   ├── manifest.json
│   │   └── robots.txt
│   └── src
│       ├── App.css
│       ├── App.js
│       ├── App.test.js
│       ├── To-Do-List.js
│       ├── index.css
│       ├── index.js
│       ├── logo.svg
│       ├── reportWebVitals.js
│       └── setupTests.js
├── go.mod
├── go.sum
├── server
│   ├── main.go
│   ├── middleware
│   │   └── middleware.go
│   ├── models
│   │   └── models.go
│   └── router
│       └── router.go
└── tree.txt

setup envs

  • golang
  • golang package
    # MongoDB Go Driver
    go get go.mongodb.org/mongo-driver
    
    # mux router
    go get -u github.com/gorilla/mux
    
  • mongodb
  • node.js
    sudo apt-get install nodejs
    sudo apt-get install npm
    

how it works

  • server: Golang
  • client: React, semantic-ui-react
  • database: Cloud MongoDB

deploy

  • Open the terminal and start the server from the server directory.
    go run main.go
    
  • Open the terminal and start the react application from the client directory.
    npm start
    
  • Go to http://localhost:3000

Screenshot_1

reference

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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