|
| 1 | +<div> |
| 2 | + <h1 align="center"><a href="https://www.epicweb.dev/workshops">Get Started with React Router 🧭</a></h1> |
| 3 | + <strong> |
| 4 | + Learn the fundamentals of the React Router library |
| 5 | + </strong> |
| 6 | + <p> |
| 7 | + In this workshop you'll get going with React Router from the very beginning all the way to creating routes with dynamic segments, layout routes, nested routes, and linking between all of these different kinds of routes. It's a perfect start to your routing journey. |
| 8 | + </p> |
| 9 | +</div> |
| 10 | + |
| 11 | +<hr /> |
| 12 | + |
| 13 | +<div align="center"> |
| 14 | + <a |
| 15 | + alt="Epic Web logo with the words Deployed Version" |
| 16 | + href="https://epicweb-dev-get-started-with-react-router.fly.dev/" |
| 17 | + > |
| 18 | + <img |
| 19 | + width="300px" |
| 20 | + src="https://github-production-user-asset-6210df.s3.amazonaws.com/1500684/254000390-447a3559-e7b9-4918-947a-1b326d239771.png" |
| 21 | + /> |
| 22 | + </a> |
| 23 | +</div> |
| 24 | + |
| 25 | +<hr /> |
| 26 | + |
| 27 | +<!-- prettier-ignore-start --> |
| 28 | +[![Build Status][build-badge]][build] |
| 29 | +[![GPL 3.0 License][license-badge]][license] |
| 30 | +[![Code of Conduct][coc-badge]][coc] |
| 31 | +<!-- prettier-ignore-end --> |
| 32 | + |
| 33 | +## Prerequisites |
| 34 | + |
| 35 | +- Basic understanding of HTML, CSS, JavaScript, and TypeScript |
| 36 | +- Install the [React DevTools](https://react.dev/learn/react-developer-tools) |
| 37 | +- You should be experienced with building custom React components |
| 38 | + |
| 39 | +<!-- |
| 40 | +
|
| 41 | +## Pre-workshop Resources |
| 42 | +
|
| 43 | +Here are some resources you can read before taking the workshop to get you up to |
| 44 | +speed on some of the tools and concepts we'll be covering: |
| 45 | +
|
| 46 | +- TODO: add some good pre-workshop resources |
| 47 | +
|
| 48 | +--> |
| 49 | + |
| 50 | +## System Requirements |
| 51 | + |
| 52 | +- [git][git] v2.18 or greater |
| 53 | +- [NodeJS][node] v18 or greater |
| 54 | +- [npm][npm] v8 or greater |
| 55 | + |
| 56 | +All of these must be available in your `PATH`. To verify things are set up |
| 57 | +properly, you can run this: |
| 58 | + |
| 59 | +```shell |
| 60 | +git --version |
| 61 | +node --version |
| 62 | +npm --version |
| 63 | +``` |
| 64 | + |
| 65 | +If you have trouble with any of these, learn more about the PATH environment |
| 66 | +variable and how to fix it here for [windows][win-path] or |
| 67 | +[mac/linux][mac-path]. |
| 68 | + |
| 69 | +## Setup |
| 70 | + |
| 71 | +This is a pretty large project (it's actually many apps in one) so it can take |
| 72 | +several minutes to get everything set up the first time. Please have a strong |
| 73 | +network connection before running the setup and grab a snack. |
| 74 | + |
| 75 | +> **Warning**: This repo is _very_ large. Make sure you have a good internet |
| 76 | +> connection before you start the setup process. The instructions below use |
| 77 | +> `--depth` to limit the amount you download, but if you have a slow connection, |
| 78 | +> or you pay for bandwidth, you may want to find a place with a better |
| 79 | +> connection. |
| 80 | +
|
| 81 | +Follow these steps to get this set up: |
| 82 | + |
| 83 | +```sh nonumber |
| 84 | +git clone --depth 1 https://github.com/epicweb-dev/get-started-with-react-router.git |
| 85 | +cd get-started-with-react-router |
| 86 | +npm run setup |
| 87 | +``` |
| 88 | + |
| 89 | +If you experience errors here, please open [an issue][issue] with as many |
| 90 | +details as you can offer. |
| 91 | + |
| 92 | +## The Workshop App |
| 93 | + |
| 94 | +Learn all about the workshop app on the |
| 95 | +[Epic Web Getting Started Guide](https://www.epicweb.dev/get-started). |
| 96 | + |
| 97 | +[](https://www.epicweb.dev/get-started) |
| 98 | + |
| 99 | +<!-- prettier-ignore-start --> |
| 100 | +[npm]: https://www.npmjs.com/ |
| 101 | +[node]: https://nodejs.org |
| 102 | +[git]: https://git-scm.com/ |
| 103 | +[build-badge]: https://img.shields.io/github/actions/workflow/status/epicweb-dev/get-started-with-react-router/validate.yml?branch=main&logo=github&style=flat-square |
| 104 | +[build]: https://github.com/epicweb-dev/get-started-with-react-router/actions?query=workflow%3Avalidate |
| 105 | +[license-badge]: https://img.shields.io/badge/license-GPL%203.0%20License-blue.svg?style=flat-square |
| 106 | +[license]: https://github.com/epicweb-dev/get-started-with-react-router/blob/main/LICENSE |
| 107 | +[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square |
| 108 | +[coc]: https://kentcdodds.com/conduct |
| 109 | +[win-path]: https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/ |
| 110 | +[mac-path]: http://stackoverflow.com/a/24322978/971592 |
| 111 | +[issue]: https://github.com/epicweb-dev/get-started-with-react-router/issues/new |
| 112 | +<!-- prettier-ignore-end --> |
0 commit comments