Version 1, 10/9/2020
This project connects to a postgreSQL database. there is a production Database: volunteer_tracker, a development Database: volunteer_tracker_test, and the tables of the databases are as follows, projects and volunteers. I also created a backup in the root directory.
With this project:
- a user will be able to view, add, update and delete projects.
- a user will also be able to view and add volunteers.
- lastly they will be able to add volunteers to a project.
- Clone project to desktop
$ git clone https://github.com/BrycenGit/volunteer_tracking_device.git
- Move to project directory
$ cd volunteer_tracker
- Open project in vscode
$ code .
- In terminal run
$ bundle install
- In terminal run
$ createdb volunteer_tracker
- In terminal run
$ psql volunteer_tracker < database_backup.sql
- In terminal run
$ createdb -T volunteer_tracker volunteer_tracker_test
- In terminal run
$ touch .env
- In .env file add text PG_PASS={YOUR POSTGRESS PASSWORD WITHOUT BRACES OR QUOTES}
- remove the :password key value pair from DB = PG.connect methods on app.rb and spec_helper.rb
- In terminal run
$ rspec
- In vscode terminal run
$ ruby app.rb
Make sure you add .env file with text PG_PASS={YOUR POSTGRESS PASSWORD WITHOUT BRACES OR QUOTES} i.e PG_PASS=password
- Ruby
- Gems: rspec, rack, sinatra, sinatra-contrib, pry, rspec, capybara, pg, dotenv
Copyright (c) 2020 Brycen Bartolome
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.