项目作者: evzpav

项目描述 :
Document CRUD with Golang server with MongoDb and VueJs client
高级语言: Vue
项目地址: git://github.com/evzpav/documents-crud.git
创建时间: 2019-04-16T01:42:07Z
项目社区:https://github.com/evzpav/documents-crud

开源协议:

下载


documents-crud

  • CRUD of documents(CPF or CNPJ), with flags type and isBlacklisted.
  • Backend(server) done in Golang with Echo framework.
  • Frontend(client) is SPA done in VueJs.
  • Structured to run on Docker, instructions are below:

Instructions to run:

Method 1 - Docker

Pre-requisites: docker and docker-compose installed

  1. # Run docker compose:
  2. sudo docker-compose up
  3. #Then check on browser: http://localhost:8080

Method 2 - Run locally

Pre-requisites: docker installed or mongo standalone and NodeJs

  1. # Run Server:
  2. # mongo needs to be running:
  3. sudo docker run -d -p 27017:27017 mongo:3.2-jessie
  4. # and following env variables specified:
  5. export PORT=1323
  6. export MONGO_PORT=27017
  7. export MONGO_HOST=localhost
  8. cd server
  9. ./server
  10. # Run Client:
  11. cd ../client
  12. npm install
  13. npm run serve