Git Product home page Git Product logo

roottoroot's Introduction

RootToRoot - An eco-friendly goods exchange platform

Static Badge Static Badge Static Badge

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.

Table of Content

Cloud Infrastucture

Deployment

Warning

Remember to run 'terraform destroy' or the file '/scripts/destroy_infra_resources.sh' to avoid being charged by AWS for unused resources.

Variables Configuration

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").

Scripts

1. Create ECR Repository and upload docker images

bash ./scripts/deploy_ecr.sh

###2. Build network and compute resources

bash ./scripts/deploy_infrastructure.sh

Tech Stack

Web Server

  • 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.

AWS Services

Local Debugging

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

  1. 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.

  1. Using manage.py script
python manage.py runserver

Website GUI

ย 

HOME PAGE


ROOM EXCHANGE VIEW

roottoroot's People

Contributors

marianopareja avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.