Plutono and its packages can be installed to your local machine or run from a Docker container.
Plutono has custom depdendencies that are published to the Github package registry. In order to install these packages, you must generate a personal access token and save it to an environment variable.
- Clone this repository.
- Visit github.com/settings/tokens to generate a new classic Personal Access Token with the
read:packages
scope. - Add this new token to your environment variables by running
export NODE_AUTH_TOKEN=your_github_personal_access_token
- To build the Docker image, run
DOCKER_BUILDKIT=1 docker build --secret id=NODE_AUTH_TOKEN --tag plutono .
- Run the application:
docker run -p 3000:3000 -it plutono
For consistency and reliability, it's best to use the same version of node that is defined in the Dockerfile. This can be easily accomplished using Node Version Manager.
- Install Node Version Manager
- Install the version of node from the Dockerfile:
nvm install v14.15.5
- Install yarn:
npm install --global yarn
- Create an
.npmrc
file in the root of the/plutono
directory and add the following contents://npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} @credativ:registry=https://npm.pkg.github.com/
- To build the packages, run
yarn install