Swap, don't buy! Find new flavours and give your unwanted goods a second opportunity. RootToRoot is a social experiment where people can exchange or donate their goods instead of throwing them away.
Warning
Remember to run 'terraform destroy' or the file '/scripts/destroy_infra_resources.sh' to avoid being charged by AWS for unused resources.
First, configure the following environment variables:
- AWS_ACCESS_KEY = Your AWS Access Key with necessary permissions attached.
- AWS_SECRET_KEY = Your AWS Secret Key with necessary permissions attached.
- AWS_ACCOUNT_ID = Your account ID (i.e. 5254-7698-8654).
- AWS_REGION = AWS Region to deploy your resources (i.e. "sa-east-1").
bash ./scripts/deploy_ecr.sh
###2. Build network and compute resources
bash ./scripts/deploy_infrastructure.sh
- Django - A high-level Python web framework that encourages rapid development and clean, pragmatic design.
- Gunicorn - A Python WSGI HTTP server for UNIX, known for its performance and ease of use.
- Nginx - A high-performance HTTP and reverse proxy server, commonly used for serving static files and load balancing.
- PostgreSQL - A powerful, open-source object-relational database system known for its reliability and data integrity features.
- Amazon ECS (Elastic Container Service) - A fully managed container orchestration service that simplifies deploying, managing, and scaling containerized applications.
- Amazon RDS (Relational Database Service) - A managed service that makes it easy to set up, operate, and scale relational databases in the cloud.
- Amazon Route 53 - A highly available and scalable cloud Domain Name System (DNS) web service.
- Amazon CloudFront - A content delivery network (CDN) service that accelerates delivery of websites, APIs, video content, and other web assets.
The application was debuuged under the following conditions:
- Environment == MacOS Sonoma 14.4.1
- Python Version == 3.8.19
- Docker version == 26.0.0
- Docker-compose version == 2.26.1
Configure SQLite database for debugging locally in /RootToRoot/RootToRoot/settings.py
- Using docker-compose [Recommended]
Run the following commands:
docker-compose build
docker-compose up
Application will be running on port 80 (nginx port)
Note
You can still access through port 8000 but no style will be fetched.
- Using manage.py script
python manage.py runserver
ย
HOME PAGE ![]() |
ROOM EXCHANGE VIEW ![]() |