https://dwitterclone.netlify.app
- Languages: JavaScript
- Backend: nodeJs, express, RestAPIs, session&cookies, JWT, Bcrypt, Configuration, Validation, Socket
- Database: MySQL, Sequelize, MongoDB, Mongoose
- Deploy: Netlify, Heroku
- Twitter clone coding (Live chat application)
-
TWEET
Schema{ id: string, // tweet id text: string, // tweet text createdAt: Date, // created date userId: string // user id }
-
get all tweets
Response
200
{ [tweet, tweet ....] }
-
get all tweets for user's username
Response
200
{ [tweet, tweet ....] }
-
get tweet by id
Response
200
{ tweet }
-
creating new tweet
Request
{ text, userId }
Response
201
{ tweet }
-
updating tweet
Request
{ text }
Response
200
{ tweet }
- updating tweet
-
USER
Schema{ id: string // user id username: string, // user username password: string, // user password name: string, // user name email: string, // user email url: string (optional) // user profile email }
-
creating new account
Reqeust
{ username, password, name, email, url }
Response
201
{ token, username }
-
user login
Reqeust
{ username, password }
Response
200
{ token, username }
-
checking token validation
Response
200
{ token, username }