Giter VIP home page Giter VIP logo

lavax-code-test's Introduction

LavaNote (LavaX Code Test)

This project is a code test from LavaX which was built with Next.js and it is a Progressive Web App.

The idea behind this project is to implement Next.js data fetching method getStaticProps which fetches data during build time, and getServerSideProps which fetches data on each request in the server side while integrating it with Apollo GraphQL.

Every note on the homepage is fetched during build time, and is saved in Apollo cache. When user visits the web-app, any notes that are available from the build time will be shown constantly without the need to fetch another request on the client side.

To make sure that the user can get the latest data after adding a note, incremental static generation is used by adding revalidate = 1 in the return values of getStaticProps which will attempt the page to regenerate when request comes in at most once every second.

Getting Started

First, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Backend

The backend of this project was made with node.js and can be checked here lavax-code-test-backend.

Live

This project has also been deployed using Vercel and can be accessed here LavaNote.

lavax-code-test's People

Contributors

aldinoanggawan avatar

Watchers

James Cloos avatar  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.