Giter VIP home page Giter VIP logo

hysan's Introduction

Contributors Forks Stargazers Issues


rails

RAILS PROJECT TEMPLATE

This is the template to replicate all my projects

Report Bug Request Feature

Table of Contents

About The Project

Starter code

This is the starter code for all my rails project to replicate the same structure and style for all my projects.

Project specifications

It has all the features that I need to build a rails project

Features

  • [] 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

Api end points

Entity Relationship Diagram (ERD)

screenshot

Built With

This project was built using these technologies.

  • Ruby on Rails

Requirements

  • Ruby
  • Ruby on Rails
  • Postgresql
  • SASS
  • Rspec
  • Rubocop
  • Capybara

How to Install

To run this locally, clone the repository, navigate to its containing directory.

Follow these commands step by step:-

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

Testing

Navigate to the project folder make sure Rspec is installed and then run the following command

$rspec -f d

Useful Commands

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

Challenges

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'

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

  2. 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 link

Live Demo of the project

Authors

πŸ‘€ Salum Habibu

Show your support

Give a ⭐ if you like this project!

Acknowledgements

Credits go to

πŸ“ License

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; }

Allow uploads up to 100MB in size

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

toast notification

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

hysan's People

Contributors

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