nextjs-package-manager-exam.../README.md

32 lines
547 B
Markdown
Raw Normal View History

2024-04-12 04:07:39 +00:00
# nextjs-package-manager-example-app
2024-04-12 03:57:56 +00:00
2024-04-12 04:21:40 +00:00
branch: `nextjs-package-manager/yarn`
2024-04-12 03:57:56 +00:00
2024-04-12 04:35:40 +00:00
This repo is for testing building `Next.js` app with different package managers. This branch uses [yarn](https://yarnpkg.com/) as the package manager.
2024-04-12 03:57:56 +00:00
2024-04-12 04:07:39 +00:00
## Getting Started
2024-04-12 03:57:56 +00:00
2024-04-12 04:07:39 +00:00
First, install the dependencies:
2024-04-12 03:57:56 +00:00
2024-04-12 04:07:39 +00:00
```zsh
2024-04-12 04:21:40 +00:00
yarn install
2024-04-12 04:07:39 +00:00
```
2024-04-12 03:57:56 +00:00
2024-04-12 04:07:39 +00:00
## Development
2024-04-12 03:57:56 +00:00
2024-04-12 04:07:39 +00:00
First, run the development server:
2024-04-12 03:57:56 +00:00
2024-04-12 04:07:39 +00:00
```zsh
2024-04-12 04:21:40 +00:00
yarn dev
2024-04-12 04:07:39 +00:00
```
2024-04-12 03:57:56 +00:00
2024-04-12 04:07:39 +00:00
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
2024-04-12 03:57:56 +00:00
2024-04-12 04:07:39 +00:00
## Production
2024-04-12 03:57:56 +00:00
2024-04-12 04:07:39 +00:00
To build the app for production, run:
2024-04-12 03:57:56 +00:00
2024-04-12 04:07:39 +00:00
```zsh
2024-04-12 04:21:40 +00:00
yarn build
2024-04-12 04:07:39 +00:00
```