DEV Community

Anima App
Anima App

Posted on • Originally published at animaapp.hashnode.dev on

How to prep for your YCombinator interview

How to prep for your YCombinator interview

Anima was a part the YC18 cohort and in preparation, developed a prep-questions app for the upcoming interviews. The app provided a training environment, simulating the 10 minute YCombinator interview format, as we geared up for the actual interview process.

Try the live demo

Given the Q&A format, the app turned out to also be a useful resource investor meetings. And after a number of requests from companies wanting to use the app's functionality, we redeveloped it so it could be shared as an open source app.

If you're interested in Amina's YCombinator journey, check out our How to nail your YC interview post.

How prep app was built

Anima CEO, Avishay Cohen, shows the step-by-step process for creating the app, which involved converting the Figma design into a live React app before deploying it on Netlify.

https://www.youtube.com/watch?v=b45EvpxAF1I

The redesign was done in Figma which meant that most of the code could be written automatically. The Anima plugin for Figma converted the design into code, specifically Figma to React.

But there was still some additional work done to support this, which you can read about in more detail on Anima's GitHub page.

How to build your own YCombinator prep tool using Anima + Figma + React + Netlify

Start with your design file.

This Figma sample file is available to duplicate here.

Step 1: Sync to Anima

1_ycombinator-anima-app-tool.png

Step 2: Export React code

In Anima, Export code for the whole project

2_ycombinator-anima-app-tool.png

Step 3: Running locally

  • Open terminal on the Anima code folder, and run:
npm install
npm start

Enter fullscreen mode Exit fullscreen mode
  • Open http://localhost:1234/

  • Adding logic

On this simple app, most of the logic is loading questions, and running them randomly.

Adding links

Loading the questions

  • The State hook is used to store the questions array and the current question.
  • The Fetch method allows us to pull the questions on getData(),
    • Ive added the questions.json file to the static files folder.
  • The Effect hook is used to trigger the
  • Ive added a simple function called next() to randomize a question from the array
  • In the render function, Ive added the value of the current question

All the final code is available on GitHub

3_ycombinator-anima-app-tool.png

Step 5: Publishing to Netlify

Netlify is a great cloud to host React apps.

If you dont have netlify , install it with npm using the following command:

npm install netlify-cli -g

Enter fullscreen mode Exit fullscreen mode

If you do have netlify use these commands:

npm run build
netlify deploy

Enter fullscreen mode Exit fullscreen mode

Choose the dist folder when asked, and youll get a link on Netlify to your React app.

Use netlify deploy prod when you have the final result, and get a sharable link.

A preview of the live app: 4_ycombinator-anima-app-tool.gif

Additional resources:

Top comments (0)