Skip to content

Latest commit

 

History

History
75 lines (51 loc) · 1.71 KB

README.md

File metadata and controls

75 lines (51 loc) · 1.71 KB

Short URL

This is a simple URL shortener project built as a part of the John Crickett's Coding Challenges codingchallenges.fyi.

Table of Contents

Tech Stack

Next.js, NextAuth.js, TypeScript, React MUI, Tailwind CSS, Cypress and MongoDB

Installation

# To install dependencies
npm ci

# To install and setup husky
npm husky install

Getting Started

Before starting the server make sure you have a .env.local file in the root directory with the same template as mentioned in .env.template file.

# Prisma migration
npm run prisma-dev-push

# To start the development server
npm run dev

Open http://localhost:3000 with your browser to see the result.

Testing

Before starting the test, make sure you have a cypress.env.json file in the root directory with the same template as mentioned in cypress.env.template.json file.

# To use the Cypress GUI
npm run test

# To run Cypress in headless mode
npm run test:headless

Deployment

# Build the optimized production build
npm run build

# Start the production server
npm run start

Extra commands

# To lint the code
npm run lint

# To check formatting using Prettier
npm run check-format

# To format the code using Prettier
npm run format