You're a React and Next.js fan. Awesome! So are we, here at SashiDo! Thus the idea to offer a boilerplate for Next.js lovers came naturally.
-
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.
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
.
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 ๐
Add your new SashiDo app as a remote branch and push changes.
git remote add production [email protected]:parsegroundapps/<your-pg-app-your-app-repo>.git
git push -f production master
Don't be shy, share your awesome ideas in a pull request!
Copyright ยฉ 2020, CloudStrap AD. See LICENSE for further details.