jainmohit2001 / short-url

This is Next.js based short url generator. This project was implemented as part of the Coding challenge by John Crickett https://codingchallenges.fyi/challenges/challenge-url-shortener

Home Page:https://short-url-master.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

This is Next.js based short url generator. This project was implemented as part of the Coding challenge by John Crickett https://codingchallenges.fyi/challenges/challenge-url-shortener

https://short-url-master.vercel.app/

License:MIT License


Languages

Language:TypeScript 97.7%Language:CSS 1.2%Language:JavaScript 0.8%Language:Shell 0.2%