Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/buwilliams/twitter-clone
Experiments with Dolt and Dolthub via node.js, express.js, and mysql.
https://github.com/buwilliams/twitter-clone
Last synced: 4 months ago
JSON representation
Experiments with Dolt and Dolthub via node.js, express.js, and mysql.
- Host: GitHub
- URL: https://github.com/buwilliams/twitter-clone
- Owner: buwilliams
- Created: 2021-03-07T12:14:14.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-07T13:42:03.000Z (almost 4 years ago)
- Last Synced: 2024-06-22T13:45:07.925Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter Clone
Experimenting with [Dolt](https://www.dolthub.com/), a version controlled database.
## Why do I find dolt interesting?
- Managing SQL databases is always a pain. Dolt provides a better UX.
- Therefore, prototyping ideas becomes easier, especially since Dolt supports CSV import. This allows me to gradually add features to the database.
- For smaller projects, performance isn't the most important thing.
- Having access to public databases through DoltHub is handy## Getting Started
- Install dolt `sudo curl -L https://github.com/dolthub/dolt/releases/latest/download/install.sh | sudo bash`
- Clone dolt repo `dolt clone buwilliams/twitter-db`
- Start mysql server `dolt sql-server`
- Clone twitter-clone repo `https://github.com/buwilliams/twitter-clone.git`
- Install deps `yarn install`
- Start express server `yarn run dev:server`## API
- GET [/user](http://localhost:3001/user)
- GET [/tweet](http://localhost:3001/tweet)## Links
- [original hacker news post](https://news.ycombinator.com/item?id=22731928)
- [twitter-db dolt repo](https://www.dolthub.com/repositories/buwilliams/twitter-db)