Giter Site home page Giter Site logo

demo's Introduction

Demo

What I do

  • Initialize the codebase for both backend and frontend
  • Use Express, PostgreSQL in backend
  • Add docker-compose, db migration for backend
  • Database has nfts table has foreign key from users table to determine NFT’s owner
  • Use Vite, React, TailwindCSS for frontend
  • Create reponsive layout from your design
  • Get data from server
  • Can search, filter by using API
  • Can load more data if you need
  • Refresh data each 60s

Improvements/ Missing pieces if I have more time

  • Save the search, filler in url params to quick return or sharing purpose
  • Add the loading skeleton, error notification, move the filter to sidebar in mobile breakpoint.
  • And image optimazer like sharp to have more image sizes, formats
  • Add more custom hooks, common components, replace the current Tooltip, Slider (no use libraries)
  • Add storybook for built-in components
  • Use vitest to test utils and react testing library to test search, filter UI
  • Dockerize for prod
  • Maybe some devices are not reponsive

Instruction

Prerequisites

Create database

cd server
docker compose up -d

Use migration

pnpm migrate:up

Go back to root folder

Dev

pnpm dev

It will run server and client parallelly

Server: http://localhost:4000

Client: http://localhost:3000

Production build

pnpm build

To serve build folders

pnpm start

demo's People

Contributors

1612492 avatar

Watchers

 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.