Simple NextJS PWA boilerplate.
Contents
Installation
Clone repo:
git clone https://github.com/ooade/NextSimpleStarter.git
cd NextSimpleStarter
Make it your own:
rm -rf .git && git init && yarn init
โน๏ธ This re-initializes the repo and sets up your project.
Install the dependencies:
yarn install
or
npm install
Development Workflow
Start a live-reload development server:
yarn dev
or
npm run dev
Generate a production build:
yarn build
or
npm run build
Deploy to Now
now dev
For production, update alias in the now.json ie "alias": "nextss-yourname.now.sh",
now
Deploy to Heroku
Heroku
Just follow Mars's Guide and you're good to go ๐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
.
Contribution
I'm open to contributions & suggestions in making this a lot better
License
MIT