Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.32 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.32 KB

Showcase website

Showcase of my recent work in web development

Specs

Running Rails 6.1.7         Ruby version 2.7.6     Rspec 3.8/Capybara 3.12.     PostgreSQL database.    
Deployed on Heroku

Features

  • Recent web development work (Ruby on Rails)

  • Other software development (such as MATLAB for data analysis)

  • Demos of several external APIs including Ethereum blockchain scanner

  • Contact form to e-mail me directly

  • Javascript/Jquery animations demonstration

Tests

  • Run test suites with bundle exec rspec spec after installing rspec with rails generate rspec:install
  • Tests are up to date and passing

Updates

  • Making portfolio items REST resources
  • UI changes
    • Making top navbar
    • Using AJAX rendering on tabs

Docker

docker build . -t showcase docker run -p 3000:3000 showcase

docker-compose up

Create database

docker-compose exec web rails db:create docker-compose exec web rails db:migrate

Copy database

docker cp your_dump_file.dump your_db_container_name:/your_dump_file.dump docker-compose exec db pg_restore -U your_postgres_username -d your_database_name -1 /your_dump_file.dump

Ansible

ansible-playbook -i hosts.ini deploy.yml -u your_ssh_user --key-file=path_to_ssh_key

Deploy

bash deploy.sh