-
-
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
30cff60
commit 6541ae0
Showing
29 changed files
with
406 additions
and
256 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
- This assumes you've cloned the NRN repository locally (cloning it once is enough, no need to clone it multiple times, but it may be simpler to use one clone per variant if you're trying out multiple variants locally :wink:) | ||
- This assumes you're already authenticated to Zeit (you should, if you've followed the [quick start](./quick-start), or if you're familiar with Zeit already) | ||
|
||
1. `cp .env.build.example .env.build` - Duplicates the `.env.build.example` as `.env.build` _(`.env.build` is only used when working locally)_ | ||
1. `cp .env.build.example .env.build` - Duplicates the `.env.build.example` as `.env.build` | ||
- **Tip**: `.env.build` is only used when working locally | ||
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. _(Optional)_ `nvm use` - Selects the right node.js version based on the `.nvmrc` file | ||
- **Tip**: Ignore this if you're not using [NVM](https://github.com/nvm-sh/nvm), but you should! | ||
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 %} | ||
That's it! The project now works on your local computer! |
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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
1. `git clone https://github.com/UnlyEd/next-right-now.git nrn-quick-start` - Clones the boilerplate | ||
1. `cd nrn-quick-start && git checkout v1-ssr` - Selects the variant | ||
1. `cp .env.build.example .env.build` - Duplicates the `.env.build.example` as `.env.build` _(`.env.build` is only used when working locally)_ | ||
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. `cp .env.build.example .env.build` - Duplicates the `.env.build.example` as `.env.build` | ||
- **Tip**: `.env.build` is only used when working locally | ||
1. _(Optional)_ `nvm use` - Selects the right node.js version based on the `.nvmrc` file | ||
- **Tip**: Ignore this if you're not using [NVM](https://github.com/nvm-sh/nvm), but you should! | ||
1. `yarn` - Installs all deps from `package.json` | ||
1. _(Optional)_ `yarn add -D now@16.7.3` - Installs an older `now` CLI that doesn't require you to have a Zeit account when working locally | ||
- **Tip**: **You don't need to do that if you already have Zeit/Now configured on your computer** _(which may be the case if you're already familiar with Zeit)_ | ||
- **Tip**: `now@17+` requires to be authenticated to Zeit in order to launch the project **locally**, so we recommend to use `now@16` instead in order to avoid unnecessary setup | ||
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 | ||
|
||
That's it! The project now works on your local computer! |
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
- **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 RAM because their files are changed very frequently! | ||
- On WebStorm, right click on the folders and select `Mark directory as > Excluded`. | ||
- **Tip**: Using WebStorm? Check out our ["How to setup" Guide](../guides/ide/setup-webstorm) |
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 @@ | ||
--- | ||
|
||
## Table of contents | ||
{: .no_toc .text-delta } | ||
|
||
- TOC | ||
{:toc} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
layout: default | ||
title: Pre-requisites | ||
parent: Getting started | ||
nav_order: 15 | ||
--- | ||
|
||
# Pre-requisites | ||
|
||
NRN expects the following to be already installed on your computer: | ||
|
||
- [NVM](https://github.com/nvm-sh/nvm) to manage installed Nodejs versions (allow to switch between versions) | ||
- It's not really a requirement, but a good practice for any serious developer. | ||
- If you don't use NVM, then please use node `v12` for the next steps. [Learn why](../guides/online-deployment/use-zeit) | ||
- Node.js should be installed (it's installed by NVM, so you're probably already covered) | ||
- [Git](https://git-scm.com/downloads) will be necessary to clone the repository on your computer. | ||
|
||
As you can see, there is no particular dependency to use NRN, all those tools are probably already installed on your computer! | ||
|
||
> NRN has only been extensively tested on **MacOS Catalina**, we expect **Unix-based OS** to behave properly, but **Windows** may behave differently (it shouldn't, but hasn't been tested). | ||
--- | ||
|
||
<div class="pagination-section"> | ||
<span class="fs-4" markdown="1"> | ||
[< Video tutorials](./video-tutorials){: .btn } | ||
</span> | ||
<span class="fs-4" markdown="1"> | ||
[Quick start >](./quick-start){: .btn .btn-purple } | ||
</span> | ||
</div> |
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.