Code Monkey home page Code Monkey logo

sieve's Introduction

Sieve Challenge

The goal of this challenge is to create a simple web app consisting of a frontend using React and a node backend using a framework of choice.

Getting Started

  • npm install
  • npm run dev

Main Dependencies

  • Express
  • React
  • SWR - Data fetching hook
  • Zod
  • usehooks-ts - exclusively used to get a debounce hook

Notable Dev Dependencies

  • Tailwind CSS + Daisy UI: TW + Daisy are leveraged for their SSR capabilities. These would resolve issues related to FOUC and FART
  • TypeScript
  • Vite
  • Testing Libraries: Includes @testing-library/react, @testing-library/jest-dom, fast-check, jsdom, and supertest for testing both client and server components.
  • ESLint

Server

  • Located in the server directory.
  • Built with Express for handling API requests.

Client

  • Source code is located in the src and client directories.
  • Utilizes React for UI components.
  • Tailwind CSS for styling.

Testing

  • npm run test

Possible improvements

Here's a non-exhaustive list of improvements that could be made to this application with more time.

  • Add caching on the server to avoid re-computing the prime numbers
  • Add service discovery to allow distributed client/server.
  • Add more styling to provide a more engaging user experience
  • Pre-compute prime numbers to get an even faster server response time.
  • Add client-side caching and memoization
  • Add some more useful tests on the client. Some of them are kind of unhelpful

sieve's People

Watchers

Flo Wolfe avatar

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.