-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from WildCodeSchool/code-tours
updated code tours
- Loading branch information
Showing
5 changed files
with
82 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"$schema": "https://aka.ms/codetour-schema", | ||
"title": "02: Frontend", | ||
"steps": [ | ||
{ | ||
"file": "frontend/src/App.jsx", | ||
"description": "From your App.jsx file you'll be able to build your application. Consider you're already in the `<body>` tag of your HTML page and code on !", | ||
"line": 6 | ||
}, | ||
{ | ||
"file": "frontend/src/App.jsx", | ||
"description": "On this very first line, you see the import of another component: Counter (you may delete it if you don't need it, it's just a sample!)\n\nOne thing to note here:\n- this import gets the `Counter.jsx` file situated in the `components` folder (no need to add the \".jsx\" extension in your imports)", | ||
"line": 1 | ||
}, | ||
{ | ||
"file": "frontend/src/components/Counter.jsx", | ||
"description": "You may store any component you create in the `src/components` folder (thanks Captain Obvious!)\n\nIt'll allow you to keep the `src` folder clean. Feel free to make subfolders to keep it as clean as possible!", | ||
"line": 3 | ||
}, | ||
{ | ||
"file": "frontend/src/assets/.gitkeep", | ||
"description": "The `src/assets` folder is meant to hold all your non-code files : fonts, images, audio & video files, ...\n\nAs seen in the previous step, please create folders here as you see fit", | ||
"line": 1 | ||
}, | ||
{ | ||
"file": "frontend/src/pages/.gitkeep", | ||
"description": "The `src/pages` folder is meant to hold components directy called by react-router (or whatever router you're using) (and if you don't understand what I'm saying riht now, don't worry: it'll become clearer soon!)\n\nYou want to store here your \"pages\" (even though React apps don't typically work like vanilla HTML websites and don't know of the \"page\" concept)", | ||
"line": 1 | ||
}, | ||
{ | ||
"file": "frontend/src/services/.gitkeep", | ||
"description": "This one is a bit trickier to explain... Sometimes, in your React app, you'll need some files which are not components at all: a custom hook, redux files, an API abstraction layer, etc... The `src/services` folder is here for that purpose exactly.\n\nDon't worry if you don't have anything to put in there for now: you'll know when you need it ;-)", | ||
"line": 1 | ||
}, | ||
{ | ||
"file": "frontend/src/App.jsx", | ||
"description": "You finished the frontend CodeTour: you're ready to build your React application!", | ||
"line": 6 | ||
} | ||
], | ||
"ref": "main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters