** Update **
** You Can Either Use the regular Elixir Backend or switch to the Rails backend **
- Simply Clone the
Fizzbuzz-api
- Change the
endpointUrl
variable value tohttp://localhost:3000/api/fizzbuzz?param=
- Start the API endpoint with
rails s -p 3000
- Voila
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Install Node.js dependencies with
cd assets && npm install
- Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
Welcome to the takehome assignment for fullstack engineers at Papa. We hope you have fun doing this assignment!
Time Limit: 1 hour
Skills tested: React knowledge, and backend knowledge (any language)
Here's what we do care about in this assignment:
- Proper functionality - are you actually solving what the problem is?
- Code cleanliness
- Conventions
- Logic
- Source control using Git
Here's what we don't care about in this assignment:
- Design
- Tests
Your task:
Add a new backend endpoint with the following signature GET /api/fizzbuzz, it will take two query parameters foo and bar. If foo is passed and true call fooFunction(), else if bar is passed and true call barFunction(). If both are passed and true call fooBarFunction() and render the output in the box below
Add 3 buttons here in the UI. One for foo, one for bar, and one for foobar to the react client. Then hit the appropriate endpoint on click with the correct parameters.