Skip to content

About

Hiring code challenge

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Flex Code Challenge

We're excited that you want to join us at Flex!

To help you understand what kind of work you'd be doing at Flex (and to help us assess your skills), we'd like you to build a simple React Native app.

We hope this will be a fun exercise for you!

Your task

  1. Create a React Native app project
  2. Create a login page with email and password fields. To test the app, use codechallenge@sweatflex.com and codechallenge.
  3. After submitting the form, send a POST request to http://staging.sweatflex.com/api/v1/auth with body {"email":"...","password":"..."}. Don't forget to set Accept: 'application/json' and 'Content-Type': 'application/json' header fields.
  4. Save the token field from the response.
  5. Fetch a list of classes using the following GraphQL query to http://staging.sweatflex.com/graphql. You'll need to include Authorization: Bearer TOKEN where TOKEN is your token from the previous step.
    {
      videos {
        duration(unit: MINS)
        name
        image_url
        stream_url
      }
    }
  6. Display a list of these classes
  7. When a user clicks a class, navigate to a class detail view.
  8. On the class detail, display information about the class.
  9. Allow the user to start playing the video. You can display the video in the same view, or navigate to a separate full-screen view.
  10. If you have extra time, you can take inspiration from the Flex app for more features, or add any other feature you think would be useful.

Rules

  1. Fork this repo and submit the final version as a pull request. Commit as needed.
  2. You can use any resource you find on the web.
  3. Visual design is not rated. We have a designer for that.
  4. Code design, on the other hand, is an important criterion during evaluation.
  5. You shouldn't need to spend more than 2 hours on this. Most people finish within 1 hour.

Evaluation criteria

  1. Functionality
  2. Code quality
  3. Ability to explain your decisions in a post-challenge interview.
  4. (Optional) Bonus points for tests, flow/typescript

About

Hiring code challenge

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors