Giter VIP home page Giter VIP logo

simple-login-auth's Introduction

Simple User Authentication

About

This is a simple user authentication application built using React and Next.js. It demonstrates a basic authentication flow, including login functionality with a focus on modern web application practices.

Key Features

  • User Login: Secure login functionality.
  • Authentication State Management: Session management using cookies.
  • Modern UI: Utilizing Radix UI for a sleek and responsive design.

Technologies Used

  • React: A JavaScript library for building user interfaces.
  • Next.js: A React framework that enables functionality such as server-side rendering and generating static websites.
  • Axios: A promise-based HTTP client for making HTTP requests.
  • SWR: A React Hooks library for data fetching.
  • js-cookie: A simple, lightweight JavaScript API for handling cookies.
  • Radix UI: Unstyled UI primitives to build your own design system.
  • Jest: A delightful JavaScript Testing Framework with a focus on simplicity.

Getting Started

Prerequisites

Make sure you have Node.js installed on your system (the latest version is recommended).

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/simple-user-auth.git
  2. Copy the envs:

    cp .env.sample .env.local
  3. Install packages:

    npm install

    or

    yarn install

Running the Application

  • Development Mode: Run npm run dev or yarn dev. This will start the development server on http://localhost:3000.

  • Production Build: Run npm run build or yarn build to build the application for production.

  • Start Production Server: After building, you can start the production server by running npm start or yarn start.

Testing

To run tests, execute npm test or yarn test. This will run Jest tests in watch mode.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a pull request.

License

Distributed under the MIT License. See LICENSE for more information.

simple-login-auth's People

Contributors

rmontserrat 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.