Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyakz/next-starter-jamstack
https://github.com/pyakz/next-starter-jamstack
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pyakz/next-starter-jamstack
- Owner: Pyakz
- License: mit
- Created: 2020-12-30T04:29:44.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-30T04:30:59.000Z (about 4 years ago)
- Last Synced: 2024-11-11T11:46:38.003Z (3 months ago)
- Language: JavaScript
- Size: 608 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Next.js starter for the [JAMstack](https://jamstack.org)
This is a boilerplate for using [Next.js](https://nextjs.org/) as a static site generator.[](https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/next-starter-jamstack)
## Usage
### Getting started
To start your project, either:
1. Deploy to Netlify using the button above, or
2. Clone this repository and run:```bash
npm install
```This will take some time and will install all packages necessary to run the starter.
### Development
While developing your website, use:
```bash
npm start
```Then visit http://localhost:3000/ to preview your new website. The Next.js development server will automatically reload the CSS or refresh the whole page, when stylesheets or content changes.
### Static build
To build a static version of the website inside the `/dist` folder, run:
```bash
npm run build
```See [package.json](package.json) for all tasks.
## Basic Concepts
You can read more about building sites and apps with Next.js in their documentation here:
https://nextjs.org/docs
## Doing dynamic things
A few resources for doing anything you can imagine with a 100% static site/app on the JAMstack
using Next.js. If you would like to add more resources please open a pull request!- [Using Next.js as a Static Site Generator for Netlify](https://scotch.io/@sw-yx/using-nextjs-as-a-static-site-generator-for-netlify) - [Shawn Wang](https://twitter.com/swyx)
- [Serverless Next.js 9 on Netlify Functions](https://community.netlify.com/t/serverless-next-js-9-on-netlify-functions/1956) - [Shawn Wang](https://twitter.com/swyx)## Deploying to Netlify
The deploy to Netlify button above will create a new site and repo in one click. If you've created your repo manually, you can deploy to Netlify as follows:
- Push your clone to your own GitHub repository.
- [Create a new site on Netlify](https://app.netlify.com/start) and link the repository.Now Netlify will build and deploy your site whenever you push to git.