Newer
Older
<h1 align="center">
Gatsby Onegeo Portal Starter
</h1>
This repo hosted on git.neogeo.fr is mirrored to gitlab.com (read only) for gatsby CLI
Use the Gatsby CLI to create a new site, specifying the starter.
```bash
gatsby new portal https://gitlab.com/geofit/gatsby-starter-onegeo.git
```
**Note**: @onegeo/gatsby-theme-onegeo is already installed with this template.
```bash
cd portal
mv .sample.env .env
nano .env
```
```bash
PF_DOMAIN=
PF_PORT=443
PF_PROTOCOL=https
PF_URL=${PF_PROTOCOL}://${PF_DOMAIN}:${PF_PORT}
**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!
```bash
cd portal/
git remote add origin https://git.neogeo.fr/{group}/{project_name}.git
git add .
git commit -m "Initial commit"
git push -u origin main
```
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.