https://github.com/taptima/fsd-next-template
Template frontend project built on top of Next.js with FSD methodology
https://github.com/taptima/fsd-next-template
Last synced: about 2 months ago
JSON representation
Template frontend project built on top of Next.js with FSD methodology
- Host: GitHub
- URL: https://github.com/taptima/fsd-next-template
- Owner: taptima
- Created: 2023-11-07T02:14:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-25T06:23:17.000Z (over 1 year ago)
- Last Synced: 2025-01-12T08:16:53.204Z (over 1 year ago)
- Language: TypeScript
- Size: 1.76 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Develop
1. Install the dependencies. Run:
```shell
pnpm install
```
2. Set up environment variables. See list of pre-configured environment
variables bellow.
Note: `.env.local` overwrite `.env` ([more](https://nextjs.org/docs/app/building-your-application/configuring/environment-variables))
3. Start the development server ([see](https://nextjs.org/docs/api-reference/cli#development) additional info about this feature). Run:
```shell
pnpm dev
```
4. Open `http://localhost:3000` in your browser.
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
## Publish
1. Install the dependencies. Run:
```shell
pnpm install
```
2. Make the production build. Run:
```shell
pnpm build
```
3. Start server ([see](https://nextjs.org/docs/api-reference/cli#production) additional info about this feature). Run:
```shell
pnpm start
```
## Pre-configured environment variables
1. `NEXT_PUBLIC_API_BASE_URL` — useful for configuring base URL for any
API calls.
2. `NEXT_PUBLIC_ASSETS_VERSION` — version of public assets. Can be used
to reset browser cache of any assets.
## Storybook
1. To start storybook locally
```shell
pnpm storybook:dev
```
2. To build storybook
```shell
pnpm storybook:build
```