Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chiqors/redwitter
Kloningan website reddit & twitter untuk latihan dengan menggunakan AdonisJS
https://github.com/chiqors/redwitter
adonisjs chiqo-practice mysql reactjs reddit twitter
Last synced: about 1 month ago
JSON representation
Kloningan website reddit & twitter untuk latihan dengan menggunakan AdonisJS
- Host: GitHub
- URL: https://github.com/chiqors/redwitter
- Owner: chiqors
- Created: 2020-03-31T14:42:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T00:01:15.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T10:09:56.167Z (almost 2 years ago)
- Topics: adonisjs, chiqo-practice, mysql, reactjs, reddit, twitter
- Language: JavaScript
- Homepage:
- Size: 2.59 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Redwitter
## Features
- [x] Submit a tweet link which is shown on the home page
- [x] Up/down vote submitted tweets
- [x] Comment on submitted tweets
- [x] Calculate user karma score for their submissions
- [x] Friends (Anyone who has up voted a users post)
- [x] Frenemies (Anyone who has down voted a users post)## Stack
#### [Adonis](https://adonisjs.com/)
> 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.
#### [ReactJS](https://facebook.github.io/react/)
> 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`