- Open the terminal application
- Paste this into the terminal appliation
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/linode/manager/develop/scripts/getting_started.sh)"
- Press
Enter
to run the command - The script will ask you to enter your password. This is likely the same password you use to login to your computer.
- Follow the prompts the scripts presents.
-
Fork this repository.
-
Clone your fork to your local machine.
-
Go to cloud.linode.com/profile/clients and click "Add an OAuth App".
-
Enter a label and set the callback URL to
http://localhost:3000/oauth/callback
. -
After your OAuth App has been created, copy the ID (not the secret).
-
In
packages/manager
, copy the contents of.env.example
and paste them into a new file called.env
. -
In
.env
setREACT_APP_CLIENT_ID
to the ID from step 5. -
Install Node.js 14.17.4. We recommend using Node Version Manager (nvm):
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash ## Add nvm to your .*rc file, or open a new terminal window. $ nvm install 14.17.4 $ node --version ## v14.17.4
-
Install the latest version of Yarn:
$ npm install --global yarn --upgrade # 1.22.10
-
Navigate to the root directory of the repository, then start Cloud Manager and the JS client with
yarn up
. -
After installation, Cloud Manager should be running at http://localhost:3000.
Since Cloud Manager was generated using Create React App, yarn build
can be used to generate an optimized production bundle:
yarn install:all
yarn workspace linode-manager build
You can then serve these files however you prefer, for example, with http-server:
npm install -g http-server
cd packages/manager/build
http-server .