Git Product home page Git Product logo

is-project's Introduction

travela

Table of Contents
  1. About The Project
  2. Getting Started

About The Project

This is a front-end implementation of a transport system. It is a complete front-end site with several pages: The landing page, the login page, a sign-up page,dashboard page,reviews page and a bookings page.
Each page's UI and code was carried out by an individual group member.
The significance of this project is:

  1. It gives the transport industry a digital brand image, which is important in this digital age
  2. Increase market reach by appealing to the user.
  3. The system also provides a platform to provide services such as bookings,comfort,easy to use and other services that can attract users.

Built With

Several technologies have been used in the design and implementation of this website. The technologies are:

  1. React Js
  2. Tailwind CSS
  3. Ruby on Rails
  4. Figma
  5. (back to top)

    Getting Started

    These are the steps required to use this project:

    Prerequisites

    NodeJS

    • npm
      npm install npm@latest -g
      On windows PowerShell
      nvm install latest
      

    CSS require no installations as they can run on the web browser

    Installation

    1. Clone the repo git clone [email protected]:nicco99/travela.git

    (back to top)

    (back to top)

    Future-implementations

    • User to customer payment

    • Implement geolocation APIs to obtain current location.

      Contribution

    If you need to contribute to this project follow the steps below:

    • Clone the repo(git clone <repo link>)
    • Create a branch where you will add changes (git branch -b <branchname>)
    • Add the changes (git add .)
    • Commit changes (git commit -m"contributing changes")
    • Push your changes (git push origin <branchname>)

    In the project directory, you can run:

    npm start

    Runs the app in the development mode.
    Open http://localhost:3000 to view it in your browser.

    The page will reload when you make changes.
    You may also see any lint errors in the console.

    npm test

    Launches the test runner in the interactive watch mode.
    See the section about running tests for more information.

    npm run build

    Builds the app for production to the build folder.
    It correctly bundles React in production mode and optimizes the build for the best performance.

    The build is minified and the filenames include the hashes.
    Your app is ready to be deployed!

    See the section about deployment for more information.

    npm run eject

    Note: this is a one-way operation. Once you eject, you can't go back!

    If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

    Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

    You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

    Learn More

    You can learn more in the Create React App documentation.

    To learn React, check out the React documentation.

    Code Splitting

    This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

    Analyzing the Bundle Size

    This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

    Making a Progressive Web App

    This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

    Advanced Configuration

    This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

    Deployment

    This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

    npm run build fails to minify

    This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

    Code Samples

        
        <!-- LOGIN SECTION -->
        import React, { useState } from 'react'
    import { NavLink,useNavigate} from "react-router-dom"
    import "../css/LoginSignup.css";
    
    
    // {setUser} pass as prop to login function
    
    function Login( ) {
    const navigate = useNavigate()
        // add this to app together with login resource
        const [user, setUser] = useState("")
        const [error, setError] = useState({})
        
        const [email, setEmail] = useState("");
        const [password, setPassword] = useState("");
    
    
        function submitHandler(e){
            e.preventDefault();
            fetch("http://localhost:3000/sessions", {
                method: "POST",
                headers: {
                    "Content-Type": "application/json",
                },
                body: JSON.stringify({ email, password }),
            }).then((res) => {
                if (res.ok) {
                    res.json().then((user) => {
                        setUser(user)
                    navigate("/dashboard")
                    });
                } else {
                    console.log(res.json().then(error=>setError(error)))
                }
            })
        }
    
    
      <!-- CSS PART OF THE ABOVE SECTION -->
    
        .form-inner 
    {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px;
        width: 400px;
        background-color: #fff;
        border-radius: 10px; 
    }
    
    .form-inner h1
    {
        text-align: center;
        padding: 0 0 20px 0;
        font-size: 30px;
        border-bottom: 1px solid rgba(127, 188, 241, 0.984);
    }
    
    .form-inner form 
    {
        padding: 0 40px;
        box-sizing: border-box;
    }
    
    form .form-group 
    {
        position: relative;
        border-bottom: 2px solid none;
        margin: 30px 0;
    }
    
    .form-group input 
    {
        width: 100%;
        height: 40px;
        padding: 0 5px;
        font-size: 16px;
        border: none;
        background: rgba(127, 188, 241, 0.854);
        border-radius: 50px;
        outline: none;
    }
    
    .form-group label 
    {
        position: absolute;
        top: 50%;
        left: 10px;
        color: #000;
        transform: translateY(-50%);
        font-size: 16px;
        pointer-events: none;
        transition: .5s;
    }

    Contributors & Contact Info

    1. Nicolas Njeru (https://github.com/nicco99)
    2. Rhoda Gachimu (https://github.com/Rhoda-Gachimu)
    3. Philip Waruingi (https://github.com/littlephillips)
    4. Tressie Muthuri (https://github.com/t-muthuri)
    5. Isaac Sindiga (https://github.com/sindiga-dev)
    6. Timothy Lenku (https://github.com/esipil)

    Project Link: [https://github.com/nicco99/travela]

    (back to top)

    License

    MIT License

    Distributed under the MIT License. See LICENSE.txt for more information. License: MIT
    [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

    (back to top)

is-project's People

Contributors

nicco99 avatar t-muthuri avatar rhoda-gachimu avatar esipil avatar littlephillips avatar

Watchers

isaac sindiga 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.