You're building Twitter!
npm install
npm start
This will start json-server
at localhost:3000
and a Gulp server at localhost:8080
.
https://www.figma.com/file/XZaHZskW8etyyJsdmcmlR5/Twitter-app?node-id=0%3A1
!!! ALL VIEWS/PAGES FROM THE DESIGN SHOULD BE IMPLEMENTED !!!
- Login
- Ignore the password, but "login" as a user if the username matches any in from the API
- Create a new tweet
- Where the
userId
is the ID of the logged in user
- Where the
- Update avatar on avatar click
- On your profile page, click the avatar to open a file dialog, the user can select an image file, which is displayed as the new avatar
- Leave a comment
- Where the
tweetId
is the tweet which the comment belongs to and theuserId
is the ID of the logged in user
- Where the
- Like
- Increase number
- Retweet
- Increase number
To include children resources, add _embed
GET /tweets?_embed=comments
GET /tweets/1?_embed=comments
To include a parent resource, add _expand
GET /comments?_expand=tweet
GET /comments/1?_expand=tweet
To get or create nested resources
GET /tweets/1/comments
POST /tweets/1/comments
- build your own API and DB(MySQL/MongoDB)
- design Schemas for DB