Publish the Route
To publish or share your route, you need to upload it to GitHub. Everyone can then view it on Celer.
TIP
You need a GitHub account for this. If you are already familiar with Git, you can skip to the bottom of the page which tells you how to view the route once uploaded.
If you aren't familiar with git, don't worry. This page will guide you through all the steps. The general idea is:
- You create a so-called repository (repo for short) on GitHub that will store the project.
- You create a folder on your PC that is linked to the repository on GitHub. This process is known as "clone".
- You move your project files inside the cloned repository.
- You upload those files to the repository on GitHub. This process is known as "push".
- Make future updates in the local repository and push again to upload the changes.
Creating the repository
- Go to https://github.com/new to start creating a new repository
- Enter a name under
Repository name
. Note the following:- It is the best for your repository name to only contain alphanumeric characters (
a-z
,A-Z
and0-9
),_
and-
. Special characters like%
or unicode characters will cause inconvienience.
- It is the best for your repository name to only contain alphanumeric characters (
- Enter a description (e.g. "My Awesome Celer Project")
- Make sure the new repository will be
public
. Celer cannot access your private repositories. - Check "Add a README file".
- Click "Create repository"
Cloning the repository
You can either clone the repository with the git
CLI tool, or use a GUI tool like GitHub Desktop. It is recommended to use GitHub Desktop if you don't know how or aren't comfortable running commands in a terminal.
With GIT Command line tool
TIP
If you are on windows, you can install git
here
With git
installed, run the following command in the directory where you want to store all your repos. Replace YOUR_USER_NAME
with your GitHub username and YOUR_REPO_NAME
with the name you entered in step 2 above.
git clone [email protected]:YOUR_USER_NAME/YOUR_REPO_NAME
With GitHub Desktop
Install GitHub Desktop from here. Then open it and sign in with your GitHub account.
- Click on "Clone a repository from the internet"
- Search for the repository you just created
- Choose a path on your PC where you want the repo to be cloned.
- Click "Clone"
Move your project inside the repository
Once the repo is cloned, you should see a directory .git
inside it on your PC and a README.md
file.
You can simply copy and paste the project files you have been editing to the repository. The project.yaml
file should be at the root, next to the README.md
file.
Push your files
With GIT Command line tool
First stage your changes
git add .
Then commit them with a message
git commit -m "example message"
Then push the changes
git push
With GitHub Desktop
- In GitHub Desktop, it should show the local changes you made in the "Changes" panel on the left. Select the files you want to upload.
- At the bottom of the changes panel, enter a short message describing the change. This is known as a commit message.
- Click "Commit to main"
- Now the changes panel should say "0 changed files"
- On the top, you should see something like this:
- Click that, and your commits are now uploaded. You can go to the repository on GitHub to confirm.
Viewing the route on Celer
To view the route on celer, go to the URL below. Replace the placeholders with your GitHub username and repo name
https://celer.pistonite.org/view/YOUR_USER_NAME/YOUR_REPO_NAME
Viewing entry point
If you configured the project as a monorepo with the entry-points
property, as described here, the URL above will take you to the default
entry point. You can add an entry point to the URL to view a particular entry point.
For example, say your root project.yaml
has:
entry-points:
my-sub-project: /path/to/project.yaml
You can view my-sub-project
as
https://celer.pistonite.org/view/YOUR_USER_NAME/YOUR_REPO_NAME/my-sub-project
You can also refer to the target project.yaml
directly:
https://celer.pistonite.org/view/YOUR_USER_NAME/YOUR_REPO_NAME/path/to/project.yaml
Viewing specific branch/commit/tag
You can add :BRANCH
to the end of the URL to view the route at a particular branch, commit, or tag. The default is the main
branch when you don't specify one.
For example, let's say you created a branch v1.2
, you can refer to this branch as
https://celer.pistonite.org/view/YOUR_USER_NAME/YOUR_REPO_NAME:v1.2
https://celer.pistonite.org/view/YOUR_USER_NAME/YOUR_REPO_NAME/ENTRY_POINT:v1.2
This can be useful for versioning your route