|
| 1 | +# Setup |
| 2 | + |
| 3 | +## Your Environment |
| 4 | + |
| 5 | +Make sure to have a [modern version of Node installed][node]: |
| 6 | + |
| 7 | +1. [Official builds][builds] (every platform) |
| 8 | +1. Homebrew (Mac/Apple): |
| 9 | + |
| 10 | + brew install node |
| 11 | + |
| 12 | +1. Scoop (Windows): |
| 13 | + |
| 14 | + scoop install nodejs |
| 15 | + |
| 16 | +1. Docker: Not yet? Let's build a Dockerfile + Docker Compose file |
| 17 | + |
| 18 | +Second off, we will need to download/install/build Git for your machine: |
| 19 | + |
| 20 | +1. Mac: [Github Desktop Install][gitDesktop] |
| 21 | +1. Windows: [Github Desktop Install][gitDesktop] |
| 22 | +1. Homebrew (Mac/Apple) |
| 23 | + |
| 24 | + brew install git |
| 25 | + |
| 26 | +## Cloning The Repo |
| 27 | + |
| 28 | +Changes to the site should be done through contributing to the repo in an open source manner. |
| 29 | +If giving back to open source is new, |
| 30 | +we highly recommend [this guide by the fine folks at GitHub][contrib]. |
| 31 | + |
| 32 | +1. Sign up or sign in to your [GitHub Account][github] |
| 33 | +1. Navigate to the [Code For Greensboro repository][repo] |
| 34 | +1. On the far right there will be a button labeled 'Fork', click it. |
| 35 | +1. Fork the repository into your account's repository list. |
| 36 | +1. (Easy): Use the GitHub Desktop client to download the code to your computer |
| 37 | +1. __Stop here if you want to use GitHub Desktop, you are all set, code away!__ |
| 38 | +1. (Harder): Follow the below if you want to use the command line |
| 39 | +1. Clone the freshly forked repository to your computer. |
| 40 | +1. Check the upstream remote by 'cd ing' into the project's root folder and running the following command: |
| 41 | + |
| 42 | + git remote -v |
| 43 | + |
| 44 | + The output should read: `origin [email protected]:{your GitHub username}/codeforgso.github.io.git` |
| 45 | + |
| 46 | +## Dependencies |
| 47 | + |
| 48 | +The project is Node application. |
| 49 | +All dependencies can be installed using the following command in the root of the repo |
| 50 | + |
| 51 | + npm install |
| 52 | + |
| 53 | +## Running the Project |
| 54 | + |
| 55 | +With all code installed, the project can be started using the following: |
| 56 | + |
| 57 | + npm run dev |
| 58 | + |
| 59 | +[node]: https://nodejs.org/en/ |
| 60 | +[builds]: https://nodejs.org/en/download/ |
| 61 | +[contrib]: https://opensource.guide/how-to-contribute/ |
| 62 | +[github]: https://github.com/ |
| 63 | +[repo]: https://github.com/codeforgso/codeforgso.github.io |
| 64 | +[gitDesktop]: https://desktop.github.com/ |
0 commit comments