-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from Vizzuality/docs
Docs
- Loading branch information
Showing
12 changed files
with
2,065 additions
and
1,662 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
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,9 @@ | ||
import { Meta } from '@storybook/addon-docs/blocks'; | ||
|
||
<Meta title="Docs/Authentication" /> | ||
|
||
# Authentication | ||
|
||
- next-auth | ||
- react query hydratation | ||
- useMe hook |
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 @@ | ||
import { Meta } from '@storybook/addon-docs/blocks'; | ||
|
||
<Meta title="Docs/Deploy" /> | ||
|
||
# Deploy | ||
|
||
- VERCEL for developing | ||
- DOCKER for staging and production |
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 @@ | ||
import { Meta } from '@storybook/addon-docs/blocks'; | ||
|
||
<Meta title="Docs/Fetching" /> | ||
|
||
# Fetching | ||
|
||
- React query | ||
- Hooks |
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,46 @@ | ||
import { Meta } from '@storybook/addon-docs/blocks'; | ||
|
||
<Meta title="Docs/Install" /> | ||
|
||
# Install | ||
## 1. ENVIRONMENT VARIABLES | ||
create a `.env.local` at the root of the app | ||
|
||
``` | ||
NODE_ENV=development | ||
NEXT_PUBLIC_MAPBOX_API_TOKEN= | ||
STORYBOOK_MAPBOX_API_TOKEN= | ||
NEXT_PUBLIC_API_URL=https://marxan49.westeurope.cloudapp.azure.com | ||
STORYBOOK_API_URL=https://marxan49.westeurope.cloudapp.azure.com | ||
NEXTAUTH_URL=http://localhost:3000 | ||
``` | ||
|
||
|
||
|
||
## 2. INSTALL DEPENDENCIES | ||
First, install all the dependencies and packages | ||
|
||
`yarn install` | ||
|
||
|
||
|
||
## 3. DEVELOPMENT | ||
Once you installed all the dependencies and packages you will be able to run these commands available in `package.json` by using `yarn dev`, `yarn build` or `yarn start` | ||
|
||
```json | ||
// package.json | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start" | ||
} | ||
``` | ||
|
||
These scripts refer to the different stages of developing an application: | ||
|
||
- `dev` - Runs next dev which starts Next.js in development mode | ||
- `build` - Runs next build which builds the application for production usage | ||
- `start` - Runs next start which starts a Next.js production server |
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,18 @@ | ||
import { Meta } from '@storybook/addon-docs/blocks'; | ||
|
||
<Meta title="Intro" /> | ||
|
||
# Intro | ||
Welcome to `Marxan web` | ||
|
||
- [Install](?path=/docs/docs-install--page) | ||
|
||
- [Deploy](?path=/docs/docs-deploy--page) | ||
|
||
- [Authentication](?path=/docs/docs-authentication--page) | ||
|
||
- [Fetching](?path=/docs/docs-fetching--page) | ||
|
||
- [Media](?path=/docs/docs-media--page) | ||
|
||
- [Tests](?path=/docs/docs-tests--page) |
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,9 @@ | ||
import { Meta } from '@storybook/addon-docs/blocks'; | ||
|
||
<Meta title="Docs/Media" /> | ||
|
||
# Media | ||
|
||
- next-optimized-images | ||
- Icons and sprites | ||
- Images? |
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 @@ | ||
import { Meta } from '@storybook/addon-docs/blocks'; | ||
|
||
<Meta title="Docs/Tests" /> | ||
|
||
# Tests | ||
|
||
- Cypress |
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.