Giter Site home page Giter Site logo

hedgehog-user-management's Introduction

Hedgehog Lab User Management

Development

Run npx @hedgehoglab/frontend-tech-test-server@latest to run the API.

Then in the project directory, you can run npm run dev, which will run the app in development mode.

Open http://localhost:5173/ to view it in your browser.

Preview

Instead of npm run dev you can run npm run preview to use the build version of the app.

Testing

Run npm test to launch the test runner.

N.B. Jest is set up to run the tests, but needs a lot more work to make it work with react-router. The __tests__ directory is set up as a starting point.

Deployment

Pushing to the Git repository will automatically deploy the app to Netlify. The deploy script runs npm run build. If you have the API running locally it should connect properly.

Notes

  • Uses Typescript throughout
  • Authentication flow borrows heavily from previous auth flow done as part of a React course
  • Users "store" is simply an object stored in memory. If the app grew I would use something like redux
  • Getting all users currently capped at 1000, with pagination done client side. If the user object grew much bigger or the number of users grew to 1000s, would reconsider using server-side pagination
  • Responsive design, with breakpoints at 40rem (640px) and 60rem (960px)
  • Light and dark mode, depending on user device preference
  • Header icon, default user image and favicon created using MidJourney
  • Raleway font downloaded from Google fonts

hedgehog-user-management's People

Contributors

chris5marsh avatar

Watchers

 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.