<h1 align="center">
Gatsby Onegeo Suite Portal
</h1>

## ๐Ÿš€ Quick start

1.  **Create a Gatsby site**

    Fork this project

    **Note**: @onegeo-suite/gatsby-theme-onegeo is already installed with this template.

    From portal folder

    Edit portal .env file (from .sample.env)

    ```bash
    cd portal
    mv .sample.env .env
    nano .env
    ```

    ```bash
    PF_DOMAIN=
    DIRECTUS_TOKEN=

    #
    # Optional (default value)
    #
    # PF_PORT=443
    # PF_PROTOCOL=https
    # PORTAL_BASE_PATH=/portal
    # DIRECTUS_URL=https://www.domain.fr/directus
    # TYPESENSE_API_TOKEN=
    #
    # OGS_LOGIN_PATH=/login
    # OGS_EXPLORER_PATH=/explorer

    # For dev Only
    # ENABLE_GATSBY_REFRESH_ENDPOINT=true
    # NODE_TLS_REJECT_UNAUTHORIZED=0
    ```

1.  **Start developing.**

    Navigate into your new siteโ€™s directory and start it up.

    ```bash
    npm start
    ```

1.  **Open the source code and start editing!**

    Your site is now running at http://localhost:8000

    **Note**: You'll also see a second link: http://localhost:8000/\_\_\_graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

    Open the my-default-starter directory in your code editor of choice and edit src/pages/index.js. Save your changes and the browser will update in real time!

1.  **Initial Commit & Push to Git repository**

    From VS Code  
    Todo...

## Config gatsby-theme-onegeo

TODO...

## ๐ŸŽ“ Learning Gatsby

Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start:

- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.

- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.

## License

MIT