You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1
+
# Short URL
2
+
3
+
This is a simple URL shortener project built as a part of the John Crickett's Coding Challenges [codingchallenges.fyi](https://codingchallenges.fyi/challenges/challenge-url-shortener).
4
+
5
+
## Table of Contents
6
+
7
+
-[Tech Stack](#tech-stack)
8
+
-[Installation](#installation)
9
+
-[Getting Started](#getting-started)
10
+
-[Testing](#testing)
11
+
-[Deployment](#deployment)
12
+
-[Extra commands](#extra-commands)
13
+
14
+
## Tech Stack
15
+
16
+
[Next.js](https://nextjs.org/), [NextAuth.js](https://next-auth.js.org/), [TypeScript](https://www.typescriptlang.org/), [React MUI](https://mui.com/), [Tailwind CSS](https://tailwindcss.com/), [Cypress](https://www.cypress.io/) and [MongoDB](https://www.mongodb.com/)
17
+
18
+
## Installation
19
+
20
+
```bash
21
+
# To install dependencies
22
+
npm ci
23
+
24
+
# To install and setup husky
25
+
npm husky install
26
+
```
2
27
3
28
## Getting Started
4
29
5
-
First, run the development server:
30
+
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.
6
31
7
32
```bash
33
+
# Prisma migration
34
+
npm run prisma-dev-push
35
+
36
+
# To start the development server
8
37
npm run dev
9
-
# or
10
-
yarn dev
11
-
# or
12
-
pnpm dev
13
38
```
14
39
15
40
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
16
41
17
-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
42
+
## Testing
18
43
19
-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
44
+
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.
20
45
21
-
## Learn More
46
+
```bash
47
+
# To use the Cypress GUI
48
+
npm run test
22
49
23
-
To learn more about Next.js, take a look at the following resources:
50
+
# To run Cypress in headless mode
51
+
npm run test:headless
52
+
```
24
53
25
-
-[Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26
-
-[Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
54
+
## Deployment
27
55
28
-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
56
+
```bash
57
+
# Build the optimized production build
58
+
npm run build
29
59
30
-
## Deploy on Vercel
60
+
# Start the production server
61
+
npm run start
62
+
```
31
63
32
-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
64
+
## Extra commands
33
65
34
-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
0 commit comments