https://github.com/dyxj/webapp-example
An example of a basic CRUD written with Go and Angular2/4 using MongoDB
https://github.com/dyxj/webapp-example
angular angular2 angular4 go golang mongodb
Last synced: 12 days ago
JSON representation
An example of a basic CRUD written with Go and Angular2/4 using MongoDB
- Host: GitHub
- URL: https://github.com/dyxj/webapp-example
- Owner: dyxj
- License: mit
- Created: 2017-08-04T17:57:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-10T12:48:31.000Z (almost 8 years ago)
- Last Synced: 2024-11-13T23:33:18.594Z (6 months ago)
- Topics: angular, angular2, angular4, go, golang, mongodb
- Language: Go
- Size: 760 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - webapp-example
README
# webapp-example
An example of a basic CRUD web application written with **Go** and **Angular2/4** using **MongoDB**.
Saw some questions on building a web application with **Go** and **Angular2/4** but couldn't find an example online, so I wrote one. Written to help people new to **Go**.
Looking to get critique. =)## Prerequisites ##
* Go
* mongodb## Documentation ##
To run the web application :
* Start up mongodb:- mongod
* go run main.go
* connects to default mongodb port
* check db/db.go for futher details**main.go**
Entry point of web app. Initializes and run web application (app.go).**app/app.go**
Application base, has functions required initialize and run web application.**db/db.go**
Functions for database call.**apis/api.go**
Base for api's, contains general api functions that are meant to be used by other api's.**apis/item.go**
CRUD api's related to *items* and function to specify routes.**models/items/items.go**
MongoDB queries for *items*.**dist/\***
Contains compiled Angular2/4 frontend.**AngularItemComponent**
Contains Angular components and service related to items.## Web App Image ##
