muhammadali96 / agiletemplates-simplenotes Goto Github PK
View Code? Open in Web Editor NEWhttps://agile-templates.netlify.app
https://agile-templates.netlify.app
Make it so you can add comments to posts and view a list of comments.
Some guidelines for completing this task:
server/config/generateDB
file with the commands you used to create this table.fetch-comments.js
endpoint on the server side to return the comments.add-comment.js
endpoint on the server side to add the comment.View a sample solution here.
The application has been renamed from 'SimpleBlog' to 'SimpleNotes'. We need to update the codebase to be consistent.
Some guidelines for completing this task:
SimpleBlog
to SimpleNotes
add-post
should be updated to add-note
etc. This includes files, variables, function names and object keys.Use the Chakra UI Component Library to recreate the following design.
Ensure all of the following subtasks are complete.
app.css
file. We will be using no css (and no inline styles) in this solution. Only Chakra components and Chakra props.Add functionality that allows a user to edit a post.
Ensure all of the following subtasks are complete.
<Post />
component.<Form />
component so it can be in either 'New Post mode' or 'Edit mode'.Save
and Cancel
.edit-post
.Create a custom hook to handle the fetching, adding and deleting of posts.
Warning! Advanced.
Ensure all of the following subtasks are complete.
client
directory called "hooks" and create a new file usePosts.js
{ posts, loading, error, client }
posts
, loading
and error
should be the existing state objects that currently live inside App.js
client
should be an object containing the two existing functions: add and delete.Allow users to toggle censorship of rude words
Ensure all of the following subtasks are complete.
Extract posts.map()
into a dedicated <Posts />
component.
Ensure all of the following subtasks are complete.
Posts.js
App.js
should be just a div with a class name of App
containing four children: The header
, Form
, Posts
and an hr
.Follow the React Router Quick Start to set up Browser Routing.
There should be two routes:
/
- The homepage showing a list of all blog posts (already exists)/:id
- An individual Blog Post Page which fetches the post that matches the :idEnsure all of the following subtasks are complete.
<Post />
component for both the homepage and the Blog Post Page.<Link />
to the Blog Post Page. This link should not show on the Blog Post Page.Post with ID <id> not found
Convert the project to Typescript.
This is a good starting point for converting a create-react-app from Javascript to Typescript.
For the server-side code, it should mostly work automatically by renaming the files from .js
to .ts
but some extra info on types can be found here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.