Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

klkuoguru/twitter-api-2020

 
 

Repository files navigation

simple-twitter-api

A clone web app of Twitter.

simple-twitter-app

Demo

GitHub Page App

  • Admin: @root
  • Users: @user1, @user2, ... , @user5
  • password: 12345678

Review

Blog

API Doc

API Doc on HackMD

Features

  • Authentication
  • Tweet
  • Reply
  • Like/Unlike
  • Follow/Unfollow
  • User data
  • Admin

Environment SetUp

  1. Node.js 12.20.0
  2. Express 4.16.4
  3. nodemon 2.0.4
  4. MySQL 8.0.22

Installation and Execution

Setup MongoDB

  1. Turn on the DB
[~] $ cd ~/mongodb/bin/
[~/mongodb/bin] $ ./mongod --dbpath ~/mongodb-data
  1. Create a database named "expense-tracker"
add expense-tracker

Activate Project

  1. Clone this git to local
[~] $ git clone https://github.com/klkuocx/twitter-api-2020.git
  1. Get into the directory
[~] $ cd twitter-api-2020
  1. Install packages
[~/twitter-api-2020] $ npm install
  1. 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
  1. Run the project
[~/twitter-api-2020] $ npm run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.9%
  • Shell 0.1%