Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 1.82 KB

README.md

File metadata and controls

38 lines (20 loc) · 1.82 KB

Amazon Clone

🚨 This is just my learning-based project:smile::smile::computer:

This example shows how to use Tailwind CSS (v2.2) with Next.js. It follows the steps outlined in the official Tailwind docs.

It uses the new Just-in-Time Mode for Tailwind CSS.

Preview

Preview the example live on Vercel:

Running locally in development mode

To get started, just clone the repository and run npm install && npm run dev:

git clone https://github.com/LinnLatt7012/Amazone-clone.git
npm install
npm run dev

Note: If you are running on Windows run install --noptional flag (i.e. npm install --no-optional) which will skip installing fsevents.

Building and deploying in production

If you wanted to run this site in production, you should install modules then build the site with npm run build and run it with npm start:

npm install
npm run build
npm start

You should run npm run build again any time you make changes to the site.

Note: If you are already running a webserver on port 80 (e.g. Macs usually have the Apache webserver running on port 80) you can still start the example in production mode by passing a different port as an Environment Variable when starting (e.g. PORT=3000 npm start).