https://github.com/sashido/sashido-nextjs-boilerplate
A boilerplate for your Next.Js project on SashiDo! 🚀
https://github.com/sashido/sashido-nextjs-boilerplate
boilerplate cdn cloud deployment hosting jamstack nextjs nodejs parse-server react sashido server-side-rendering serverless
Last synced: 9 months ago
JSON representation
A boilerplate for your Next.Js project on SashiDo! 🚀
- Host: GitHub
- URL: https://github.com/sashido/sashido-nextjs-boilerplate
- Owner: SashiDo
- License: apache-2.0
- Created: 2020-08-13T16:03:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-27T15:01:44.000Z (about 4 years ago)
- Last Synced: 2025-03-22T09:24:34.811Z (9 months ago)
- Topics: boilerplate, cdn, cloud, deployment, hosting, jamstack, nextjs, nodejs, parse-server, react, sashido, server-side-rendering, serverless
- Language: JavaScript
- Homepage: https://www.sashido.io
- Size: 190 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SashiDo & NextJS Boilerplate

## A flying start for your Next.js SashiDo project!
You're a React and [Next.js](https://nextjs.org/) fan. Awesome! So are we, here at [SashiDo](https://www.sashido.io/en/)! Thus the idea to offer a boilerplate for Next.js lovers came naturally.
## The Basics
- **What is SashiDo.io** - A fully-managed serverless API development platform with scalable NodeJS Rest & GraphQL API, easy to use CMS, CRUD, Object and File storage, built-in CDN, User Management, Relations, Push Notifications, System Emails, Cloud functions & Jobs, Real-time messages, and more out of the box.
- **What is Next.js** - A great JavaScript framework that lets you easily build a complete web application with React and server-side rendering.
## How does this work?
The project is developed as a Next.js boilerplate for SashiDo applications. The platform allows implementation of server-side logic and has a built-in Express, which is directly mounted to the server. We use Express for handling the Next.js and you may find the respective logic at [`cloud/app.js`](https://github.com/SashiDo/sashido-nextjs-boilerplate/blob/master/cloud/app.js#L18).
## Installation
**1. Clone the repo**
```
git clone https://github.com/SashiDo/sashido-nextjs-boilerplate.git
cd sashido-nextjs-boilerplate
```
**2. Install Dependencies**
```
npm install
```
**3. ENV Variables**
- `DATABASE_URI` - Default: 'mongodb://localhost:27017/dev'
- `APP_ID` Default: 'myAppId'
- `MASTER_KEY` : Default: ''
- `SERVER_URL` : Default: http://localhost:1337/1'
- `PORT` : Default: 1337
**4. Development**
```
npm run dev
```
If everything is okay you should see an output similar to this one:
```
Running on http://localhost:1337
info: Parse LiveQuery Server starts running
Defining routes from exportPathMap
[ ready ] compiled successfully
```
**5. Go wild and unleash your Next.js creativity into the `./src` folder.**
**6. Open http://localhost:1337 in your browser and see the changes 😉**
## Deploy on SashiDo
Add your new SashiDo app as a remote branch and push changes.
```
git remote add production git@github.com:parsegroundapps/.git
git push -f production master
```
## Contribution
Don't be shy, share your awesome ideas in a pull request!
## License
Copyright © 2020, CloudStrap AD. See [LICENSE](https://github.com/SashiDo/sashido-nextjs-boilerplate/blob/master/LICENSE) for further details.