Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shashkovdanil/next-template
Next.js, TypeScript, CSS Modules template
https://github.com/shashkovdanil/next-template
css next nextjs postcss typescript
Last synced: 7 days ago
JSON representation
Next.js, TypeScript, CSS Modules template
- Host: GitHub
- URL: https://github.com/shashkovdanil/next-template
- Owner: shashkovdanil
- License: mit
- Created: 2019-10-18T11:17:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T15:31:35.000Z (almost 2 years ago)
- Last Synced: 2023-03-06T01:43:04.041Z (over 1 year ago)
- Topics: css, next, nextjs, postcss, typescript
- Language: TypeScript
- Homepage:
- Size: 1.47 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Template for Next.js App
The template is based on [TypeScript](https://www.typescriptlang.org/) and [Next.js](https://nextjs.org/) and includes:
- Setting the `env` variables by creating the file` env.${development | stage | production}`
- Proxy settings (edited in the file [`src/server.ts`](https://github.com/shashkovdanil/next-template/blob/master/src/server.ts#L16))
- CSS Modules with [PostCSS](https://postcss.org/) for styling
- ESLint (create-react-app config), Prettier, Stylelint
- Git hooks (husky with lint-staged)
- Aliases for `src/*` directories## Usage
```sh
npx degit shashkovdanil/next-template my-nextjs-projectyarn
yarn start:dev
```## Production
```sh
yarn build:prod # build production bundle
yarn start:prod # start server
```