Vote App is a (Golang & VueJS) app that allows users to vote online on draft laws.
- GO 1.13 on your local machine
- Git
- docker latest (
docker --version
) (https://docs.docker.com/install/) - docker-compose latest (
docker-compose --version
) (https://docs.docker.com/compose/install/) - make (
make --version
)
- Clone project into your
$GOPATH
throughgithub.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
- GO API : http://localhost:4000
- Vue App : http://localhost:8080
- API Collection link to import Vote collection : https://www.getpostman.com/collections/fc1fc5458b8afaa1a0a7
- Make sure to define
url
andtoken
environnements variables
- Stop all containers
make down
- Build images
make build
- Run only vote app
make vue
- See Vue logs
docker-compose logs -f node
- Validations : https://github.com/qor/validations
- Directives : click here
- Formik use case :
http://localhost:8080/formik
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
To launch all tests
make full-tests
To launch signgle test
docker-compose exec go go test -v -run function-name
- Pull last version of
develop
branch - Create new branch that name begins with
ft-
followed by functionnality's name. Example for login :ft-login
- Ameena AZIZ ameena.aziz9@gmail.com
- Kaba CONDE contact@kabaconde.com
- Adam Malick SOW adam.sow97@gmail.com