https://github.com/devlinduldulao/nextjs-pwa-js
https://github.com/devlinduldulao/nextjs-pwa-js
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devlinduldulao/nextjs-pwa-js
- Owner: webmasterdevlin
- Created: 2020-10-12T08:20:10.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-12T08:20:12.000Z (over 5 years ago)
- Last Synced: 2025-01-26T13:42:14.782Z (over 1 year ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
Simple NextJS PWA boilerplate.
## Contents
- [Installation](#installation)
- [Development Workflow](#development-workflow)
- [Deploy to Now](#deploy-to-now)
- [Deploy to Netlify](#deploy-to-netlify)
- [Deploy to Gitpod](#deploy-to-gitpod)
### Installation
Clone repo:
```sh
git clone https://github.com/ooade/NextSimpleStarter.git
cd NextSimpleStarter
```
Make it your own:
```sh
rm -rf .git && git init && yarn init
```
> :information_source: This re-initializes the repo and sets up your project.
Install the dependencies:
```sh
yarn install
```
or
```sh
npm install
```
### Development Workflow
Start a live-reload development server:
```sh
yarn dev
```
or
```sh
npm run dev
```
Generate a production build:
```sh
yarn build
```
or
```sh
npm run build
```
### Deploy to Now
```sh
now dev
```
For production, update alias in the now.json ie `"alias": "nextss-yourname.now.sh",`
```sh
now
```
[](https://deploy.now.sh/?repo=https://github.com/ooade/NextSimpleStarter)
### Deploy to Heroku
Just follow Mars's Guide and you're good to go :clap:
### Deploy to Netlify
- On netlify, Click on new site from git.
- Select Cloned Repository.
- Choose VCS.
- Add build command `npm run export`.
- Add publish directory `out`.
### Deploy to Gitpod
Click here to deploy on Gitpod.
### Contribution
I'm open to contributions & suggestions in making this a lot better :hand:
### License
MIT