Skip to content

Semester project on Ruby-on-Rails for ECE444 - Software Engineering

License

Notifications You must be signed in to change notification settings

mohaimenhasan/ECommerce-Website-for-gigs

Repository files navigation

ECE444-Home-Gig

Build Status

Ruby-on-Rails app project for ECE444 - Software Engineering. This app provides the oppurtunity of contract work for different gigs. For example,software development, copy-editing, graphic design, or the creation of marketing material that can often be done at home. The basic idea behind this service if to create a home gig service that connects those offering work with those seeking work done, and offer such subservices as billing and payments.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

The following software with the specified versions, as mentioned below, need to be installed:

  • Ruby
  • Rails
  • postgreSQL
  • Heroku
  • Software Installation Versions:

    Ruby: 2.6.4
    Rails: 6.0.0
    PSQL: 12.0

    Installing

    A step by step series of examples that tell you how to get a development env running. Please run all the commands from app directory:

    1. git clone the repository
    git clone https://github.com/mohaimenhasan/ECE444-Home-Gig.git
    
    1. Create an account on stripe and add your stripe keys into ENV (for testing and deployment)
    GMAIL_USERNAME: <account for sending out emails>
    GMAIL_PASSWORD: <gmail pass>
    STRIPE_PUBLISHABLE_KEY: <from stripe wesbite>
    STRIPE_SECRET_KEY: <from stripe website>
    
    1. Add stripe api keys in to credentials by using the following commands
    EDITOR=vim rails credentials:edit
    stripe:
      development:
        publishable_key: '<from stripe website>'
        secret_key: '<from stripe website>'
    
    1. Install all the gems
    bundle install
    
    1. Set Up Database
    rails db:create
    
    1. Migrate all the necessary schemas
    rails db:migrate
    
    1. Populate the db with some categories:
    rails db:seed
    
    1. Start the server:
    rails s
    

    Running the tests

    To run the automated test run the following from the app directory:

    rails test test/
    

    Break down into end to end tests

    Explain what these tests test and why

    • Test for users

    Users can not be created without a valid email

    rails test test/models/user_test
    

    Deployment

    To deploy it on heroku please sign in and request for access for the app: https://dashboard.heroku.com/apps/secure-ocean-69468

    Live Demo available at: https://secure-ocean-69468.herokuapp.com/

    Built With

    • Ruby - Language
    • Rails - Web Framework
    • PSQL - Relational Database

    Authors

    • Mohaimen Khan
    • Jennifer Hu
    • Hongyi Yang
    • Muhammad Waseem Qadeer
    • Zihan Zhao

    See also the list of contributors who participated in this project.

    License

    This project is licensed under the MIT License - see the LICENSE.md file for details

    Acknowledgements

    • Kijiji
    • Fiverr

    About

    Semester project on Ruby-on-Rails for ECE444 - Software Engineering

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published