Skip to content

jecfish/go-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

#Demo App for Angular 1.4 + GO Basic of use Angular front end and Go as back end language Get, Add, Delete friends

Install: Enviroment

  1. Install go: https://golang.org/
  2. Install node js: https://nodejs.org/
  3. Install environment variables:-
  • For Windows user: create a GOPATH system variable by go to Control Panel > System > Advance system settings > Advanced tab > Environment Variables > Under system variables > create a new variable "GOPATH", value "C:\Go\bin"
  • For Mac user: open terminal, type export GOPATH=$GOROOT/bin
  1. Project location of "go-angular"
  • For windows user, extract this project to C:\Go\src\
  • For Mac user, extract this project to anywhere you want

Install: Project dependencies

  1. Open command line/terminal: navigate to frontend folder, type "npm install"
  2. Open command line/terminal: navigate to backend folder, type "go get"

Run it

  1. Front end
    • Open command line/terminal: navigate to frontend folder, type "npm start"
    • Open browser: http://localhost:8080/
  2. Back end

**in case you hit any $GOPATH error while running go command, please follow instruction https://golang.org/doc/install

About

Basic of use Angular front end and Go as API back end implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published