This is a simple Todo using GO in the backend and Angular 4 for client side. It's uses the basic memory storage to maintain the list.
Install Go and Node.js Install Angular CLI
$ npm install -g @angular/cli
Clone the repo
$ git clone [email protected]:salman-amjad/angular-golang-todo.git
Install the dependencies and devDependencies and start the server.
$ cd angular-golang-todo
$ go get
$ cd client
$ npm install -d
This can be done in two ways:
- Run
go run *.go
< this will start a server athttp://localhost:8080
- Serve only Angular:
cd client
,ng serve --watch
, this will serve client athttp://localhost:4200
- Run using a task manager
gin --port 8000 --appPort 8080 run
, this will proxy our app athttp://localhost:8000
and watch for fiel chnages.
Note: This code is just an example and isn't production ready.
- Implement
MVC
- Use
Mongo DB
for data storage.