This is a simple URL shortener project built as a part of the John Crickett's Coding Challenges codingchallenges.fyi.
Next.js, NextAuth.js, TypeScript, React MUI, Tailwind CSS, Cypress and MongoDB
# To install dependencies
npm ci
# To install and setup husky
npm husky install
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.
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
# Build the optimized production build
npm run build
# Start the production server
npm run start
# 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