Coder Social home page Coder Social logo

ptzagk / angular-go-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anshap1719/angular-go-boilerplate

0.0 0.0 0.0 2.3 MB

A simple boilerplate project with Angular 4 on Front-End and Golang on Backend

TypeScript 65.99% JavaScript 14.26% Shell 0.76% HTML 8.71% Go 9.58% CSS 0.69%

angular-go-boilerplate's Introduction

Angular + Golang Starter Kit

Prerequisites

  • You have Angular CLI & npm installed.
  • You have Go installed and GOPATH set up properly.

Before You Begin

Instead of running npm install as you normally would, you need to run npm run install-dependencies which will run npm install for you in addition to installing the required Go dependencies for this boilerplate project.

Run The Project

npm start will run both the Go server (by default at port 4201) and Webpack Dev Server for Angular (at port 4200). npm start basically runs the serve.sh bash script which in turn starts ng serve and Go live server parallely. You can access the app by visiting http://localhost:4200.

Note: The console output for both the client and the server will be printed in the same console window.

This boilerplate takes care of Allow-Cross-Origin-Access errors by default by explicitely allowing the client's address to make cross origin requests

This also means that you will have to edit the code to make it work for production builds. Currently, it is also required that both the client and server be built separately. This boilerplate currently provides a stage only for development purposes with no automatic combined builds. I am working on making it work properly with build and also on adding some customizabilty, so keep an eye out for those.

angular-go-boilerplate's People

Contributors

anshap1719 avatar angular-cli 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.