|
1 | 1 | # React static list of posts
|
2 | 2 |
|
3 |
| -By using [posts.js](posts.js), [users.js](users.js), and [comments.js](comments.js) as modules to your React application, create and display a list of posts with the following data on each: |
| 3 | +## Demo link |
| 4 | + |
| 5 | +Add link here: `[DEMO LINK](https://<your_account>.github.io/<repo_name>/)` |
| 6 | + |
| 7 | + |
| 8 | +## Task |
| 9 | + |
| 10 | +By using [posts.js](./src/api/posts.js), [users.js](./src/api/users.js), and [comments.js](./src/api/comments.js) as modules to your React application, create and display a list of posts with the following data on each: |
4 | 11 |
|
5 | 12 | 1) the title of the post;
|
6 | 13 | 2) the text (body) of the post;
|
7 | 14 | 3) the name, email, and address of the author of the post;
|
8 | 15 | 4) sublist of the post comments, including the name and email of the author of each comment as well as the comment itself.
|
9 | 16 |
|
10 | 17 | Create and use five components: `PostList`, `Post`, `User`, `CommentList`, and `Comment`. You can use the `User` component from both `Post` (with address) and `Comment` (without providing any address).
|
| 18 | + |
| 19 | + |
| 20 | +## Workflow |
| 21 | + |
| 22 | +- Fork the repository with task |
| 23 | +- Clone forked repository |
| 24 | + ```bash |
| 25 | + git clone [email protected]: <user_name >/ <task_repository >.git |
| 26 | + ``` |
| 27 | +- Run `npm install` to install dependencies. |
| 28 | +- Then develop |
| 29 | + |
| 30 | + |
| 31 | +## Development mode |
| 32 | + |
| 33 | +- Run `npm start` to start development server on `http://localhost:3000` |
| 34 | + When you run server the command line window will no longer be available for |
| 35 | + writing commands until you stop server (`ctrl + c`). All other commands you |
| 36 | + need to run in new command line window. |
| 37 | +- Follow [HTML, CSS styleguide](https://mate-academy.github.io/style-guides/htmlcss.html) |
| 38 | +- Follow [the simplified JS styleguide](https://mate-academy.github.io/style-guides/javascript-standard-modified) |
| 39 | +- run `npm run lint` to check code style |
| 40 | +- When you finished add correct `homepage` to `package.json` and run `npm run deploy` |
| 41 | +- Add links to your demo in readme.md. |
| 42 | + - `[DEMO LINK](https://<your_account>.github.io/<repo_name>/)` - this will be a |
| 43 | + link to your index.html |
| 44 | +- Commit and push all recent changes. |
| 45 | +- Create `Pull Request` from forked repo `(<branch_name>)` to original repo |
| 46 | +(`master`). |
| 47 | +- Add a link at `PR` to Google Spreadsheets. |
| 48 | + |
| 49 | + |
| 50 | +## Project structure |
| 51 | + |
| 52 | +- `src/` - directory for css, js, image, fonts files |
| 53 | +- `build/` - directory for built pages |
| 54 | + |
| 55 | +You should be writing code in `src/` directory. |
0 commit comments