Code Monkey home page Code Monkey logo

medusa-auth-starter's Introduction

🏬 Medusa Auth Starter

medusa-badge v1.5.0 prs-welcome starter-template

A Starter Template which includes complete Medusa Authflow i.e Registration, User Login & Logout

🍀 Key Features

  1. This starter template provides authentication workflow out of the box, so you don't have to re-invest your time building it from scratch.
  2. Maintable folder structure and following Medusa's similar code practices.
  3. Currently supporting version v.1.5.0
  4. Tailwind CSS integration with Next.js for styling.

🌌 Tech Stack

🌠 Sub Dependencies

🔬 Local Setup & Installation

  1. Start off by installing medusa client globally on your system
$ yarn global add @medusajs/medusa-cli

📌 Quick Note (By default)

  • Admin runs on PORT - 7000
  • Storefront runs on PORT - 8000
  • Backend runs on PORT - 9000
  1. cd into each directory and install the dependencies
# Backend
cd backend
yarn install

# Admin
cd admin
yarn install

# Storefront
cd storefront
yarn install
  1. The backend server should be running in the background while developing the application!

👤 Creating a new admin user

  • cd into the backend directory and run the following command
$ medusa user -e [email protected] -p somepassword
  • This will create a new user which can be used to access the dashboard
  1. Test the application by running the server, admin and storefront
# Backend
cd backend
yarn start

# Admin
cd admin
yarn start

# Storefront
cd storefront
yarn dev

🎯 Overview

  1. Login Component

1

  1. Register Component

2

  1. Authenticated User (any protected route)

3

🥏 Deployment

Follow the deployment guide provided in the docs -

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.