Skip to content

Latest commit

 

History

History
107 lines (70 loc) · 2.12 KB

README.md

File metadata and controls

107 lines (70 loc) · 2.12 KB

Vote App

Vote App is a (Golang & VueJS) app that allows users to vote online on draft laws.

Requirements

Installation

  • Clone project into your $GOPATH through github.com/kconde2 which is generally (~/go/src/github.com/)
git clone https://github.com/kconde2/vote-app.git
  • Install project dependencies
make install
  • Run this command to run api and watch files (Docker)
make run

or

  • Run with local environnement (Local)
cd && go run main.go

Usage

Postman

Useful commands

  • Stop all containers make down
  • Build images make build
  • Run only vote app make vue
  • See Vue logs docker-compose logs -f node

Usefull links

Bugs fix

If your "go" container wont build, check build errors with

docker-compose up

If your "node" container won't build and you get the "vue-cli-service: not found" error, run

make f-install

then stop all containers and relaunch them

docker-compose down &&  docker-compose up -d

Run Tests (In process)

To launch all tests

make full-tests

To launch signgle test

docker-compose exec go go test -v -run function-name

Contributions

  • Pull last version of develop branch
  • Create new branch that name begins with ft- followed by functionnality's name. Example for login : ft-login

Authors / Maintainers