A clone web app of Twitter.
- Admin:
@root
- Users:
@user1
,@user2
, ... ,@user5
- password:
12345678
- Authentication
- Tweet
- Reply
- Like/Unlike
- Follow/Unfollow
- User data
- Admin
- Turn on the DB
[~] $ cd ~/mongodb/bin/
[~/mongodb/bin] $ ./mongod --dbpath ~/mongodb-data
- Create a database named "expense-tracker"
add expense-tracker
- Clone this git to local
[~] $ git clone https://github.com/klkuocx/twitter-api-2020.git
- Get into the directory
[~] $ cd twitter-api-2020
- Install packages
[~/twitter-api-2020] $ npm install
- Setup MySQL, db model and seeds
drop database if exists ac_twitter_workspace;
create database ac_twitter_workspace;
drop database if exists ac_twitter_workspace_test;
create database ac_twitter_workspace_test;
[~/twitter-api-2020] $ npx sequelize db:migrate
[~/twitter-api-2020] $ npx sequelize db:seed:all
- Run the project
[~/twitter-api-2020] $ npm run start