Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryparker/proto-nextjs-router-mpa


https://github.com/ryparker/proto-nextjs-router-mpa

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Web App

The latest front-end prototype.

## :rocket: Quick Start

**1. Install dependencies with Yarn v1**

```shell
yarn install
```

**2. Start the development server**

```shell
yarn dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

**3. Build for production**

```shell
yarn build
```

## :traffic_light: Tests

Run all unit tests using Jest.

```sh
yarn test
```

## :books: Component Library (Storybook)

Start Storybook to play with components in isolation.

```sh
yarn storybook
```

## ✍️ Creating new components

To create a new component use Plop.

```sh
yarn plop
```

_See the plop template files at [`./templates/components/base/`](./templates/components/base/)_

## Getting Started with NextJS

You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

### Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!