https://github.com/ignema/albc
https://github.com/ignema/albc
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ignema/albc
- Owner: Ignema
- Created: 2021-12-19T22:00:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-19T22:03:10.000Z (over 4 years ago)
- Last Synced: 2025-03-01T08:23:45.419Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter: Component Based Architecture Example
## Installation
You need a cassandra database up and running. In this example, we used docker to set up a single node cassandra cluster like follows:
> docker pull cassandra
> docker run --name cassandra-1 -d -p 7000:7000 -p 7001:7001 -p 7199:7199 -p 9042:9042 -p 9160:9160 cassandra
> docker exec -it cassandra-1 cqlsh -e "
CREATE KEYSPACE twitter
WITH REPLICATION = {
'class' : 'SimpleStrategy',
'replication_factor' : 1
};"
Next up, you need to clone the repository and install dependencies
> git clone
> pip install -r requirements.txt
Now run the uvicorn server
> uvicorn main:app --reload