Skip to content

kconde2/vote-app

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •