Skip to content

Kloningan website reddit & twitter untuk latihan dengan menggunakan AdonisJS

Notifications You must be signed in to change notification settings

chiqors/Redwitter

Repository files navigation

Redwitter

Features

  • Submit a tweet link which is shown on the home page
  • Up/down vote submitted tweets
  • Comment on submitted tweets
  • Calculate user karma score for their submissions
  • Friends (Anyone who has up voted a users post)
  • Frenemies (Anyone who has down voted a users post)

Stack

AdonisJs is a true MVC Framework for Node.js

Adonis provides the backend used for Tweddit. Its primary purpose is to respond to various API calls used within the single page application built in ReactJS.

I use a MySQL database and Adonis's active record ORM (lucid) to interact with the data.

React is a declarative, efficient, and flexible JavaScript library for building user interfaces.

ReactJS gets used on the client side for Tweddit. I used Redux to manage the application's state (containers). I trigger several different API requests that fetch data from the server and provides state to numerous "dumb" components.

Getting Started

You may optionally use the provided dockerfile I created to fire up the application quickly.

  1. Setup a MySQL database
  2. Create a .env file and edit the variables to use your database
  3. Migrate the database using ./ace migration:run
  4. Fire up the application yarn run serve:dev

About

Kloningan website reddit & twitter untuk latihan dengan menggunakan AdonisJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published