Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benediktvaldez/web
My fancy pants website
https://github.com/benediktvaldez/web
nextjs react typescript
Last synced: 20 days ago
JSON representation
My fancy pants website
- Host: GitHub
- URL: https://github.com/benediktvaldez/web
- Owner: benediktvaldez
- Created: 2020-05-22T00:40:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T15:05:37.000Z (4 months ago)
- Last Synced: 2024-11-01T10:21:45.683Z (2 months ago)
- Topics: nextjs, react, typescript
- Language: TypeScript
- Homepage: https://www.valdez.is
- Size: 9.17 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeScript & Styled Components Next.js example
This is a really simple project that show the usage of Next.js with TypeScript and Styled Components.
## Deploy your own
Deploy the example using [Vercel](https://vercel.com):
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/zeit/next.js/tree/canary/examples/with-typescript-styled-components)
## How to use it?
### Using `create-next-app`
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npm init next-app --example with-typescript-styled-components with-typescript-app
# or
yarn create next-app --example with-typescript-styled-components with-typescript-app
```### Download manually
Download the example:
```bash
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-typescript-styled-components
cd with-typescript-styled-components
```Install it and run:
```bash
npm install
npm run dev
# or
yarn
yarn dev
```Deploy it to the cloud with [Vercel](https://vercel.com/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
## Notes
This is an amalgamation of the 2 existing examples:
- [with-typescript](https://github.com/zeit/next.js/tree/canary/examples/with-typescript)
- [with-styled-components](https://github.com/zeit/next.js/tree/canary/examples/with-styled-components)