-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c68a7e1
commit 9513140
Showing
65 changed files
with
562 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -251,6 +251,7 @@ PLATFORMS | |
|
||
DEPENDENCIES | ||
github-pages | ||
jemoji | ||
just-the-docs | ||
tzinfo (~> 1.2) | ||
tzinfo-data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
1. `git clone git@github.com:UnlyEd/next-right-now.git` - Clones the boilerplate | ||
1. `git checkout {{ include.variant }}` - Select the variant | ||
1. Duplicate the `.env.build.example` and rename it `.env.build` _(this file is only used on your local computer)_ | ||
1. Create an account for all required 3rd party vendors above, and fill-in missing environment variables in your `.env.build` file | ||
1. `nvm use` - Selects the right node.js version based on the `.nvmrc` file | ||
1. `yarn` - Installs all deps from `package.json` | ||
1. `yarn start` - Starts the app on [http://localhost:8888/](http://localhost:8888/) | ||
1. That's it! The project now works on your local computer, and should be identical to the online demo | ||
|
||
{% include installation-guide-tips.md %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
1. `git clone git@github.com:UnlyEd/next-right-now.git` - Clones the boilerplate | ||
1. `git checkout v1-ssr` - Select the variant | ||
1. Duplicate the `.env.build.example` and rename it `.env.build` _(this file is only used on your local computer)_ | ||
1. `nvm use` - Selects the right node.js version based on the `.nvmrc` file | ||
1. `yarn add -D now@16.7.3`, now@17+ requires to be authenticated to Zeit in order to launch the project **locally**, so you must use now@16 instead, to avoid additional setup | ||
1. `yarn` - Installs all deps from `package.json` | ||
1. `yarn start` - Starts the app on [http://localhost:8888/](http://localhost:8888/) | ||
1. That's it! The project now works on your local computer, and should be identical to the online demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
> **Tip**: You can start the project in **debug mode** (built-in for WebStorm only) [by running the WebStorm "Debug" configuration in debug mode](https://youtu.be/3vbkiRAT4e8) | ||
> | ||
> **Tip**: Configure your IDE not to index `.next` and `.now` folders as they will eat a lot of your memory because they're changed very frequently | ||
> On WebStorm, right click on the folders and select `Mark directory as > Excluded`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
| [Amplitude](https://amplitude.com/pricing?ref=unly-nrn) | :white_check_mark: | :white_check_mark: [1<sup>st</sup> year free](https://amplitude.com/startups?ref=unly-nrn) _(for startups and non-profit)_ | Don't provide discounts | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
| [GraphCMS](https://graphcms.com/pricing?ref=unly-nrn) | :white_check_mark: | :white_check_mark: **Growth** plan 2 weeks | Provide discounts for non-profit organisations | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
| [Locize](https://locize.com/pricing.html?ref=unly-nrn) | :x: | :white_check_mark: 2 weeks | May provide discount for non-profit organisations, contact them at [support@locize.com](support@locize.com ) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
| [Sentry](https://sentry.io/pricing?ref=unly-nrn) | :white_check_mark: | :white_check_mark: Any plan 2 weeks | Don't provide discounts | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
| [Zeit](https://zeit.co/pricing?ref=unly-nrn) | :white_check_mark: | :x: (but free plan is better than trial) | Friendly pricing for [non-commercial usage](https://spectrum.chat/zeit/general/deploying-on-ziet-now~700e3286-551f-42d1-a289-df4cb52e23ea?m=MTU4MzgzMjg1MzAyOA==) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% if variant %} | ||
The following vendors are **built-in** with the variant `{{variant}}`. | ||
{% endif %} | ||
|
||
| Vendor | Has free plan | Has free trial | Potential discounts | | ||
|:-------------|:------------------|:------|:----| | ||
{% if include.zeit == true%}{% include vendors/vendor-row-zeit.md %}{% endif %}{% if include.graphcms == true%}{% include vendors/vendor-row-graphcms.md %}{% endif %}{% if include.locize == true%}{% include vendors/vendor-row-locize.md %}{% endif %}{% if include.amplitude == true%}{% include vendors/vendor-row-amplitude.md %}{% endif %}{% if include.sentry == true%}{% include vendors/vendor-row-sentry.md %}{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
1. (Optional) Run `now login` if you aren't authenticated to Zeit from your local machine. Typically, if it's the first time you use Zeit you'll need to do it. | ||
1. You need to change the associated Zeit `scope` (it currently uses the boilerplate's, because it's required for our CI/CD Github Actions) | ||
- Remove the whole line `"scope": "team_qnVfSEVc2WwmOE1OYhZr4VST",` in all `now.*.json` files | ||
- `yarn start` - Will create a `.now` folder containing project metadata. | ||
- Add a `scope` line in all `now.*.json` files using the `projectId` in `.now/project.json` | ||
1. Create all [Zeit secrets](https://zeit.co/docs/v2/environment-variables-and-secrets) by running `now secrets add $secretName $secretValue`, for instance `now secrets add nrn-sentry-dsn https://14fa1cae05079675b18cd05403ae5c48@sentry.io/1234567`. | ||
The full list of expected Zeit secrets to define is in any `now.*.json` file. | ||
1. `yarn deploy` - Will deploy the project online, and automatically create the Zeit project first, if it doesn't exist already. | ||
This command will fail if any secret is missing. | ||
1. Go to [Zeit](https://zeit.co/) to see the project being deployed, go through logs, etc. | ||
|
||
At this point, manual deploy through command line should work. | ||
But CI/CD requires [additional configuration](../guides/ci-cd/setup-github-actions) to automatically deploy when a change is applied on the remote repository. | ||
|
||
{% include zeit-online-deployment-tips.md %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
> Zeit doesn't provide the `projectId` from the Zeit platform itself, even if the project exists already. Running `yarn start` locally is the only way to know what is your `projectId`, AFAIK. | ||
> | ||
> If you create a secret with a wrong value, you will have to delete it and create it again (there is no update feature). See `now secrets --help` | ||
> | ||
> **Tip**: If you ever need to store files as secrets (such as ssh keys), see [this solution](https://github.com/zeit/now/issues/749#issuecomment-533873759) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.