SamuelCody / auth-app

Home Page:https://auth-app-omega.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Technologies Used

  • Next
  • React
  • Typescript

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

You need to install npm

  • npm
    npm install npm@latest -g

Installation

  1. Set up a mongodb database on https://www.mongodb.com
  2. Clone the repo
    git clone https://github.com/SamuelCody/auth-app.git
  3. cd into the project and install NPM packages
    npm install
  4. Enter your DATABASE_URL and NEXTAUTH_URL in .env file in the root directory
    DATABASE_URL = "ENTER DATABASE URL";
    NEXTAUTH_URL = "http://localhost:3000";
    NEXTAUTH_SECRET="a random string";
  5. Open a terminal and cd into the project and create the collections in your database. Using the Prisma CLI tool, run the below in your terminal
    npx prisma db push
  6. Start the project using:
    npm run dev

About

https://auth-app-omega.vercel.app


Languages

Language:TypeScript 98.8%Language:JavaScript 0.8%Language:CSS 0.4%