Giter Site home page Giter Site logo

nostalcade / mern-client Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 450 KB

Basis Client for a quick start in development with React, Vite, Zustand, Tailwind CSS, Axios, and Much more.

Home Page: https://mern.nostalcade.com

License: MIT License

HTML 1.62% JavaScript 93.44% CSS 4.93%
autoprefixer axios client nodejs postcss prettier react react-router tailwindcss vite recaptcha zustand

mern-client's Introduction


MERN Client interacts with the API running on MERN Server to perform CRUD operations on users. The layout of the Client pages consists of publicly accessible pages such as Register, Email Confirm, Log In, Forgot Password, Reset Password, Terms, and the private Account page with access control.

Features

  • Node.js

    • Package Structure
  • Vite

    • Environment Variables

    • Import Aliases & Directories

  • React

    • Project Structure
  • React Router

    • Browser Router
  • Zustand

    • Stores

    • Middlewares

  • PostCSS

    • Plugins

      • Tailwind CSS

      • Autoprefixer

  • Tailwind CSS

    • Custom

      • Colors

      • Screens

  • Axios

    • Custom Instance

    • Interceptors

      • Request

      • Response

  • PWA Support

    • Manifest Structure
  • Netlify

    • _redirects
  • reCAPTCHA

  • Mobile-Friendly

  • README Structure

Tech Stack

Environment Variables

โš ๏ธ Before running it, you must obtain the following values to initialize the required variables.

Variable Value Description
VITE_SERVER_URL MERN Server Required. API base path URL on Server
VITE_JWT_STORED_NAME String Required. Unique key name to save JWT in Local Storage
VITE_RECAPTCHA_PUBLIC_KEY Private/Public Site Key Required. Public Site Key for React Google reCAPTCHA and Private Site Key for MERN Server

Run

Install required

Locally

Clone the repository

  • HTTPS

    git clone https://github.com/nostalcade/mern-client.git
  • SSH

    git clone [email protected]:nostalcade/mern-client.git

Go to the repository directory

cd mern-client/

Install dev/Dependencies

npm i

Add Environment Variables to .env file

  • You must replace "somevalue" with your own values.
echo $'VITE_SERVER_URL=somevalue\n\nVITE_JWT_STORED_NAME=somevalue\n\nVITE_RECAPTCHA_PUBLIC_KEY=somevalue' >> .env

Clear Bash History

history -cw

Start dev server

npm run dev

In the MERN Server, add to CLIENT_URL

http://localhost:5173

All-In-One

  • HTTPS

    git clone https://github.com/nostalcade/mern-client.git; cd mern-client/; npm i; echo $'VITE_SERVER_URL=somevalue\n\nVITE_JWT_STORED_NAME=somevalue\n\nVITE_RECAPTCHA_PUBLIC_KEY=somevalue' >> .env; history -cw; npm run dev;
  • SSH

    git clone [email protected]:nostalcade/mern-client.git; cd mern-client/; npm i; echo $'VITE_SERVER_URL=somevalue\n\nVITE_JWT_STORED_NAME=somevalue\n\nVITE_RECAPTCHA_PUBLIC_KEY=somevalue' >> .env; history -cw; npm run dev;

Screenshots

Desktop

desktop public log in desktop private account

Mobile

mobile public log in mobile private account

License

mern-client's People

Contributors

nostalcade avatar

Stargazers

 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.