- About the Project
- Built With
- Features
- Requirements
- Useful Commands
- Live Link
- Contact
- Acknowledgements
This is the starter code for all my rails project to replicate the same structure and style for all my projects.
It has all the features that I need to build a rails project
-
[] User authentication
- [] Sign up/Sign in with username and password/ Sign in with Facebook/twitter/github
- [] Reset password
- [] Forgot password
- [] Remember me
- [] Email confirmation
- [] Email notifications
- [] OTP authentication, 2FA, 2SV, authenticator app, SMS, email
-
[] Clean code, dry, BEM, SASS, loop
-
Mega Menu, footer, sidebar
-
[] Toast notification using hotwire
-
[] site map, geolocation, google navigator etc
-
Responsive design
-
[] Search
-
[] Pagination
-
[] Filter
-
[] Sort
-
[] Rating
-
[] Comment
-
[] Like
-
[] Follow
-
[] Share
-
[] Favorite
-
[] Bookmark
-
[] Upload image
-
[] Upload video
-
Upload audio
-
Upload file
-
[] Well documented Gem file and readme file
-
[] Charts and graph
-
[] Hotwire
This project was built using these technologies.
- Ruby on Rails
- Ruby
- Ruby on Rails
- Postgresql
- SASS
- Rspec
- Rubocop
- Capybara
To run this locally, clone the repository, navigate to its containing directory.
[email protected]:IBUNHABIBU/car-rent-booking.git
cd car-rent-booking
$bundle install --without production
$sudo service postgresql start
$rails db:setup
$rails db:migrate
$rails server
Enjoy playing it.
Navigate to the project folder make sure Rspec is installed and then run the following command
$rspec -f d
Command | Description |
---|---|
rails new . --css=sass --javascript=esbuild --database=postgresql |
create new project inside current directory |
bundle install |
Install project dependencies |
sudo service postgresql start |
Starting the database |
rails db:migrate |
Database migration |
rails server |
start the server |
rubocop -a |
Fix all the lint errors automatically |
bundle exec rspec |
Run all rspec tests |
rspec spec/requests --format documentation |
Run all rspec tests well formated |
rspec spec/requests --format doc |
Run all rspec tests well formated |
rspec spec/requests -f d |
Run all rspec tests well formated |
rspec spec/foldername/file_name_spec.rb |
Run rspec tests for a specific file |
EDITOR='code --wait' rails credentials:edit |
Edit credentials |
secret_key_base: a695950e10660b4b4d2593e66174883b929790c0c9ef4e8532d64e4878d1ae85a0089d0059bab3e854f015ac9a142c27e0dcaba31b4a8ce17e49eb2c5bc24e99
It seems like you're encountering an error related to SSH key authentication with the ed25519 key type in your Ruby application. The error message indicates that the ed25519 gem is missing, which is required for ssh-ed25519 support in net-ssh. Solution
add gem 'ed25519', '>= 1.2', '< 2.0' gem 'bcrypt_pbkdf', '>= 1.0', '< 2.0'
You have already activated uri 0.12.1, but your Gemfile requires uri 0.13.0. Prepending bundle exec
to your command may solve this.
Solution
I removed the uri '0.12.1' in the vps using command
gem list uri
gem list -d uri
gem uninstall uri
gem install uri -v '0.13.0'
-
01 rake aborted! 01 ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage
Solution
I deleted the credentials.yml.enc and then I created again using the command
EDITOR='code --wait' rails credentias:edit
-
DEBUG [a7255b43] rake aborted! DEBUG [a7255b43] ActiveRecord::NoDatabaseError: We could not find your database: kamich. Which can be found in the database configuration file located at config/database.yml.
solution
I created the database in the vps using the sql commands
when doing display none transision will not work
CREATE DATABASE kamich
;
Live Demo of the project
π€ Salum Habibu
- Github: IBUNHABIBU
- Twitter: @ibunhabibu
- LinkedIn: Salum Habibu Kombo
Give a β if you like this project!
Credits go to
- Mr Eric Mbouwe, Emmanuel Kamala and Marcelo AraΓΊjo(Microverse students) for their help to resolve the bugs.
- All my standup team for their help.
- All TSE who reviewed my project.
- All those helped me to resolve bugs.
This project is MIT licensed.
server {
server_name kamich.darlive.cyou www.kamich.darlive.cyou; root /home/deploy/colabapi/current/public;
passenger_enabled on; passenger_app_env production;
location /cable { passenger_app_group_name colabapi_websocket; passenger_force_max_concurrent_requests_per_process 0; }
client_max_body_size 100m;
location ~ ^/(assets|packs) { expires max; gzip_static on; }
listen [::]:443 ssl; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/colabapi.darlive.cyou/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/colabapi.darlive.cyou/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
https://bbbootstrap.com/snippets/toast-notification-close-button-27153346
Client content
1. Quality control equipment in food and beverage, Lab chemicals and allied products.
Picha ya nje hizo mita
Picha in details document ya chemical and alied products
2. Utility and water technologgies
Maelezo ya mwanzo
Malezo ya details - Utilities & Water Technologies
Utilities (Product Application Guide) - HYG & SAN TECHNICAL COMPANY LIMITED