This is the public facing landing page served at https://toit.io/.
This project is built with gatsby and react.
This project doesn't compile anymore with recent node versions. Use,
for example, nvm
to install an older version of node. The repository
contains a .nvmrc
file that specifies the node version that works.
yarn
is used in web projects. To install yarn
, follow the guide
here.
Note! You don't need to setup your PATH
env.var. as described in the guide.
If you haven't installed node
yet, install node
from
nodejs.org. Add the node bin directory to your PATH
in $HOME/.profile
The version of node
must be >= v12.16.1, i.e. the version of node that comes
with yarn is not the latest.
In order to be able to install packages from this repository on your machine, you need to authenticate with the GitHub registry.
Here's a short summary of what you need to do:
- Create a personal access token
- Name it appropriately
- Check
write:packages
andread:packages
- Copy the token
- Add the token to your
~/.npmrc
:echo "//npm.pkg.github.com/:_authToken=YOUR_TOKEN" >> ~/.npmrc
Install all dependencies with yarn install
and start the development gatsby
server with yarn run develop
.
For all available scripts, look at the scripts
section in package.json
.