Giter VIP home page Giter VIP logo

webapp-example's Introduction

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

Alt text

webapp-example's People

Contributors

dyxj avatar

Stargazers

Friedhold Matz avatar  avatar  avatar Francisco Rebolledo avatar Marco Aurélio avatar Andreas Stathopoulos avatar H0 HadokenLab avatar  avatar WebHadoken.WWW0rm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.