Skip to content

klnjmm/webandcow-challenge-bootstrap

Repository files navigation

WebAndCow Challenge PHP Bootstrap

PHP Bootstrap to play to WebAndCow challenges

Getting started on Unix or Mac OS X system

Clone the repository

git clone https://github.com/klnjmm/webandcow-challenge-bootstrap.git your-project-name
cd your-project-name

Init

make init
make up

Let's code !

How to resolve challenges

  • .Open .env file and fill WEBANDCOW_API_KEY and WEBANDCOW_CHALLENGE_CODE variables
    • WEBANDCOW_API_KEY can be copy from your profile page
    • WEBANDCOW_CHALLENGE_CODE can be copy from the challenge webpage.
  • Write your solution in src/Solution.php
  • Write your unit tests in tests/units/SolutionTest.php
  • Try your solution :
php index.php

Developing on Unix or Mac OS X system

Here a few commands that can help you :

  • Launch unit tests
make unit-tests
  • Launch code sniffer
make code-sniffer

Possible errors

  • Challenge code unknown. Please copy it again from the challenge webpage in WEBANDCOW_CHALLENGE_CODEin your .env file
Exception: Error when contacting API -- Array
(
[0] => Engine inconnu ou non valide
)
  • Bad API KEY. Please copy it again from your profile page in WEBANDCOW_API_KEYin your .env file
Exception: Error when contacting API -- Array
  (
  [0] => Key User non valide
  )

Licensing

Do whatever you want with this !

About

Bootstrap project to play to WebAndCow challenges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published