Git Product home page Git Product logo

7cs069_web_technologies_portfolio's Introduction

7CS069_Web_Technologies_Portfolio

A repository for the web application development project for MSc Computer Science Module Web Technologies.

Motorbike Rental Web Application.

Overview

The application is divided into two main parts:

  1. Frontend: A React application that provides the user interface for the application. Users can view available motorbikes, make a booking, and manage their bookings/listings through this interface.

  2. Backend: A Laravel API that provides data to the frontend and handles business logic. The API has endpoints for user authentication, motorbike listing, and booking management.

Installation and running the app

Step 1: Clone the main repo to your local environment

Step 2: Create a MySQL server and database

For this project, I used DBngin (https://dbngin.com/) to run my MySQL server. upon opening the application, use the + button to create a new server. Change the service to MySQL, name the server and use the default port 3306.

To create the DB. Ensure you have MySQL installed. To create the DB for this project, TablePlus. Upon loading Table plus, click the database icon or use (โŒ˜ + K)/(CTRL + K) to open the database window. In this window, click 'new...' and create a new MySQL database called 'rideon_api' - This is already specified in the .env file. (https://tableplus.com/blog/2018/06/mysql-create-database.html)

step 3: Install, migrate and run the Backend

(In the terminal)

  1. Navigate to the backend directory: cd backend

  2. Install dependencies: composer install

  3. Run migrations and seed the database: php artisan migrate:fresh --seed

  4. Run the server: php artisan serve

Install and Run the Frontend

(In a fresh terminal)

To run in development mode:

  1. Navigate to the frontend directory: cd frontend -> cd ride-on

  2. Install dependencies: npm install

  3. Start the application: npm start

To run in production mode

  1. Navigate to the frontend directory: cd frontend -> cd ride-on

  2. Run: npm run build

  3. Install serve (https://www.npmjs.com/package/serve): npm install -g serve

  4. Run the build version with serve: serve -s build

Dependencies

"@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", "bootstrap": "^5.3.2", "jest": "^27.5.1", "react": "^18.2.0", "react-bootstrap": "^2.10.1", "react-bootstrap-icons": "^1.11.3", "react-dom": "^18.2.0", "react-router-dom": "^6.22.1", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" "php": "^8.1", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.10", "laravel/sanctum": "^3.3", "laravel/tinker": "^2.8"

Acknowledgements

React Bootstrap: https://react-bootstrap.netlify.app/ CSS backgrounds: https://10015.io/ icons by: https://icons8.com/

Images by:

Gijs Coolen: https://unsplash.com/photos/black-and-silver-naked-motorcycle-on-road-during-daytime--5rcxih1e44?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash

cottonbro studio: https://www.pexels.com/photo/man-repairing-a-motorcycle-5803320/

Nick Wehrli: https://www.pexels.com/photo/photo-of-man-riding-bicycle-4054069/

7cs069_web_technologies_portfolio's People

Contributors

np-armstrong avatar

Stargazers

 avatar

Watchers

 avatar

7cs069_web_technologies_portfolio's Issues

Create search bar

Create a search bar that allows the user to input:

  • Location
  • pick up date
  • drop off date
  • Add a button to initial search and route user to the listings page where results will be displayed

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.