GithubHelp home page GithubHelp logo

ptannor / yc-prep Goto Github PK

View Code? Open in Web Editor NEW

This project forked from animaapp/yc-prep

0.0 1.0 0.0 66 KB

Built with Anima: An app to get you ready to YCombinator interview.

License: MIT License

JavaScript 52.55% CSS 37.18% HTML 10.27%

yc-prep's Introduction

YC Prep - Interview simulation app

Open-sourcing Anima's prep-questions app

TL;DR: Back in 2018, when our YC interview was scheduled, we built an app to help us prepare for it. Having many companies asking us for a simulated interview, we've decided to rebuild the app using Anima and open-source it โค๏ธ Here's a live link.

More tips on how to get into YCombinator are available here.

So what is this code?

Most of the code was written automatically with Anima, given a Figma design. Anima converts design into code. In this case, Figma to React.

Starting from a boilerplate code with all the design means you fast forward to implementing the logic. We are doing a lot to produce developer-friendly code. The result is not yet perfect, but it requires minor tweaks in most cases.

Behind the scenes, we do A LOT of heavy lifting to give you super clean code. To name a few of the algorithms:

  • Automatically name elements (i.e 'vector567' -> 'Share icon')
  • Automatically tagging elements (i.e detecting h1 / h2 / p, etc.)
  • Restructure the DOM as close as possible to what a human engineer would with multiple heuristics
  • Unwrapping divs and creating flex-based divs for a tidy layout
  • Merging elements
  • Removing redundant elements
  • Extract CSS variables & classes for repeating colors, fonts, and more
  • Find repeating DOM patterns and refactor to components And much more.

In addition, we run visual tests with headless browsers on multiple resolutions, to make sure you're getting pixel-perfect code.

Again, our code is not perfect yet, as you will see in this repo.
However, the fact that it is 10x faster to build products is mind-blowing for everyone building an MVP, POC or even a demo.

How to run this code

In Terminal, go into the project's folder, then -

npm install
npm start

Open http://localhost:1234.

How to deploy to netlify

If you don't have netlify:

npm install netlify-cli -g 

Once you do have netlify:

npm run build
netlify deploy

Choose dist folder when asked, and you'll get a link on netlify to your React app. Use netlify deploy --prod when you have the final result, and get a sharable link.

Any feedback is welcome ๐Ÿ™

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.