Members: Please do not hesistate to click on the links and read the documentation and guides for each of the technologies in use in this project.
This website is developed in SvelteKit with Typescript.
Pocketbase is used for the database, along with Skeleton as the UI library and TailwindCSS as the CSS preproccessor.
Make sure you have nodejs and git installed.
For new members, installing and using VScode with the "Svelte for VS Code" and "Tailwind CSS IntelliSense" extensions is highly reccomended.
- Install Git (and/or your favorite Git client.)
- (Optional) Set Up an SSH Key for GitHub.
- Go to the top level arista-rewrite repository: https://github.com/leomet07/arista-rewrite
- Click the "Fork" Button in the upper right hand corner of the interface (More Details Here)
- After the repository (repo) has been forked, you will be taken to your copy of the arista-rewrite repo at https://github.com/YOUR_USERNAME/arista-rewrite
- Open a Terminal / Command Line / Bash Shell in your projects directory (i.e.:
~/yourprojectdirectory/
) - Clone your fork of arista-rewrite
$ git clone https://github.com/YOUR_USERNAME/arista-rewrite.git
This will download the entire arista-rewrite repo to your projects directory.
- Change directory to the new arista-rewrite directory (
cd arista-rewrite
) - Add a remote to the official arista-rewrite repo:
$ git remote add upstream https://github.com/leomet07/arista-rewrite.git
Congratulations, you now have a local copy of the arista-rewrite repo!
- Once you have arista-rewrite cloned, before you start the application, you first need to install all of the dependencies:
npm install
-
Set up the
.env
Create a.env
file. Contact Lenny for the contents of this file. -
Run the development server:
npm run dev
Open http://localhost:5173 with your browser to see the result.
You can start editing the (home) page by modifying src/routes/+page.svelte
. Any page you edit will hot reload as you edit the file.
Before you start working, you will need to create a separate branch specific to the issue / feature you're working on. You will push your work to this branch.
Name the branch something like fix/xxx
or feature/xxx
where xxx
is a short description of the changes or feature
you are attempting to add. For example fix/email-login
would be a branch where you fix something specific to email login.
To create a branch on your local machine (and switch to this branch):
$ git checkout -b [name_of_your_new_branch]
and to push to GitHub:
$ git push origin [name_of_your_new_branch]
If you need more help with branching, take a look at this.
This bit is up to you! Remember, you already submitted a pasteup, so now make it come to fruition!
When you're ready to share your code, create a pull request.
A pull request (PR) is a method of submitting proposed changes to the arista-rewrite repo (or any repo, for that matter). You will make changes to copies of the files which make up arista-rewrite in a personal fork, then apply to have them accepted by a arista-rewrite maintainer.
- Perform the maintenance step of rebasing
main
. - Ensure you are on the
main
branch usinggit status
:
$ git status
On branch main
Your branch is up-to-date with 'origin/main'.
nothing to commit, working directory clean
-
If you are not on main or your working directory is not clean, resolve any outstanding files/commits and checkout main
git checkout main
-
Create a branch off of
main
with git:git checkout -B branch/name-here
Note: Branch naming is important. Use a name likefix/short-fix-description
orfeature/short-feature-description
. -
Edit your file(s) locally with the editor of your choice.
-
Check your
git status
to see unstaged files. -
Add your edited files:
git add path/to/filename.ext
You can also do:git add .
to add all unstaged files. Take care, though, because you can accidentally add files you don't want added. Review yourgit status
first. -
Commit your edits. Refer to Writing good commit messages.
-
Push your commits to your GitHub Fork:
git push origin branch/name-here
In your web browser go to your repository fork's GitHub Page.
-
Once the edits have been committed, you will be prompted to create a pull request on that page.
-
By default, all pull requests should be against the arista-rewrite main repo,
main
branch. -
Submit a pull request to arista-rewrite's
main
branch. -
The title (also called the subject) of your PR should be descriptive of your changes and succinctly indicates what is being fixed.
- Examples:
Add Test Cases to Bonfire Drop It
Correct typo in Waypoint Size Your Images
- Examples:
-
In the body of your PR include a more detailed summary of the changes you made and why.
- If the PR is meant to fix an existing bug/issue then, at the end of
your PR's description, append the keyword
closes
and #xxxx (where xxxx is the issue number). Example:closes #1337
. This tells GitHub to close the existing issue, if the PR is merged.
- If the PR is meant to fix an existing bug/issue then, at the end of
your PR's description, append the keyword
Now that you have a copy of your fork, there is work you will need to do to keep it current.
Do this prior to every time you create a branch for a pull request (PR):
- Make sure you are on the
main
branch
$ git status
On branch main
Your branch is up-to-date with 'origin/main'.
If your aren't on main
, resolve outstanding files / commits and checkout the main
branch
$ git checkout main
- Do a pull with rebase against
upstream
$ git pull --rebase upstream main
This will pull down all of the changes to the official develop branch, without making an additional commit in your local repo.
- Reinstall dependencies
Over the past few weeks, many breaking changes have occurred involving this site's javascript dependencies. Make sure to re-run npm install.
$ npm install
Once your PR is accepted, you may delete the branch you created to submit it. This keeps your working fork clean.
You can do this with a press of a button on the GitHub PR interface. You can
delete the local copy of the branch with: git branch -D branch/to-delete-name