Backend API of the final project for the Lighthouse Labs Web Development Program created by Marcos Spomberg, Tony Walker and Siyi Xie.
Trash2Treasure is a platform for users to list items (treasures) that are being left for donation in public spaces. It realies heavily on geolocation and the Google Maps API. Users are able to add and claims donations/treasures, comment on each donation and search by location and item name.
To be used in conjunction with the frontend app.
Created with Ruby 2.6.6 and Rails 6.1.5.
- Postgres
- Puma
- JBuilder
- Faker
- HTTP
- Rack-CORS
- Google Maps
- cd into the directory
- Run
bundle installto install required gems - Rename config/local_env.example.yml to config/local_env.yml and add a valid Google Maps API key string.
- Run
rails db:setupto create the database, load the schema and initialize the seed data. - Run
rails startto start the API.
Frontend Setup
- cd into the directory
- Run
npm installto install the dependencies. - Rename
.env.development.example.localas.env.development.localand add a valid Google Maps API key string. - Run
npm start