Code Monkey home page Code Monkey logo

vue-golang-gae's Introduction

Installation

$ git clone https://github.com/ryom0624/vue-golang-docker.git

Getting-Started

First, create and login your GCP account.

$ gcluod auth login
$ gcloud auth application-default login

Then, start application in below command.

$ docker-compose up -d

Dependency

You must install on your environment, if you didn't install these.

Development

$ docker-compose exec frontend npm install
$ docker-compose exec frontend npm install axios

http://localhost:8081

Deployment

frontend

$ cd frontend
$ docker build -t vue-compile .
$ docker container run --name npm_build vue-compile:latest npm run build
$ docker container cp npm_build:/app/dist ./
$ gcloud app deploy

or makefile

$ make build
$ cd frontend
$ gcloud app deploy

backend

$ cd ./backenrd-api
$ gcloud app deploy

Deprecated

add frontend && backend-api/secret.yaml

$ cd ./backenrd-api
$ gcloud app deploy

$ cd ..

$ cd ./frontend
$ docker-compose exec frontend npm run build -- --mode production
$ gcloud app deploy

vue-golang-gae's People

Watchers

 avatar

vue-golang-gae's Issues

internalservererrorのあとリクエストができなくなる。

Postモデルにおいてデータベースに存在しないデータを開こうとしたらInternalSeverErrorにしているが、その後多分golang側で適切なエラーハンドリングをしていないからその後のリクエストができなくなる。

xhr.js?b50d:172 GET http://localhost:8080/api/v1/articles net::ERR_EMPTY_RESPONSE

createError.js?2d83:16 Uncaught (in promise) Error: Network Error
    at createError (createError.js?2d83:16)
    at XMLHttpRequest.handleError (xhr.js?b50d:81)
$ curl -X GET http://localhost:8080/api/v1/post/golang
curl: (52) Empty reply from server

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.