Static Vue site for displaying TRC Camper's Guide info in a user-friendly format.
Site is deployed at trianglehat.org
Attention computer people! Want to contribute to this project? Yes you can. Here's a simple guide to get you started, even if you're new to GitHub.
- Create a GitHub Account: If you don't have one, sign up at GitHub.
- Fork the Repository: Click the "Fork" button in the top right corner of our repository. This creates a copy in your account.
- Make Your Changes: Navigate to the file you want to update, click edit, and make your changes. For an image, you can upload a new file directly.
- Commit Your Changes: Add a meaningful commit message and commit directly to the
main
branch. - Create a Pull Request: Head over to the "Pull requests" tab in our repo, click "New pull request," and select your fork as the source. Fill in the details and submit!
- Install GitHub Desktop and NPM: Download GitHub Desktop, and install Node.js and npm.
- Clone the Repository: Use GitHub Desktop to clone the forked repository to your machine.
- Install Dependencies: In your project folder, run
npm install
. - Run the Dev Environment: Start the server with
npm run dev
and see your version in action in the browser. - Make Local Changes: Update the files as needed and view your changes in the browser.
- Commit and Push: Use GitHub Desktop to commit and push your changes.
- Create a Pull Request: Just like before, create a PR for your updates.
Pro Tips:
- Read the Commit history for more Update examples.
- Keep your fork updated with the latest changes from our repository.
Once you submit a PR, we'll review it and provide feedback. If everything looks good, we'll merge your changes into the project. Happy coding, and thanks for your input!
- Open command prompt, cd to this directory. Run
npm create vue@latest
to use the Vue project scaffolding tool. - Use the default vue-project name. Choose yes for the Pinia option, no to all other options.
- cd into vue-project. run
npm install
and thennpm run dev
to run the dev server. - Modify source code, view changes in dev server.
- Push updates to GitHub.
- Deploy on Azure as a static site.
- Repeat steps 4 and 5 ad infinitum.
- Follow Vue installation instructions on Tailwind Docs.
- Create tailwind.css style sheet, import and add tailwind directives.
- Update main.js, import tailwind style sheet.
- Run
npm run dev
to interact with site in dev server. Update HelloWorld.vue component, add Tailwind CSS component classes to test and demonstrate its use. - Pushing this updated code will automatically update the deployed site, according to the Azure Static Web Apps GitHub workflow file. It takes about 2 minutes to see the updates go live. You can check on the status of the deployment from GitHub Actions.