Code Monkey home page Code Monkey logo

cars-app's Introduction

cars-app

This car buying and selling app was built using React to enable people to easily browse, buy or sell their cars.

Users can do the following with this app:

  • browse through a list cars.
  • view a car's details.
  • sell their preowned cars on the site, subject to approval.

How to Use

  1. Clone this repository to your local machine.
  2. Ensure you have node.js, npm and json server installed globally.
  3. Navigate to the cars-app directory and run the following command: json-server --watch db.json --port 3000 to enable fetching from db.json file.
  4. Open a new terminal window and run the following command: json-server --watch db2.json --port 8000 to enable receiving the submitted info to a local .json file (db2.json)
  5. Install react dependencies on your project directory by running the following command: npm install && npm start
  6. Your application will now run in your default browser at port 8000 http://localhost:8000/
  7. You can now test out the app by visiting it and browsing for yourself.
  8. You can contribute to this project by forking it, making the necessary changes, pushing to GitHub and creating a pull request.

Common errors

You might get an OpenSSL error if you're using Node JS v17 and later versions. To fix this type the following commands:

  • export NODE_OPTIONS=--openssl-legacy-provider for macOS, Linux or Windows Git Bash.
  • set NODE_OPTIONS=--openssl-legacy-provider for Windows Command Prompt.
  • $env:NODE_OPTIONS="--openssl-legacy-provider" for Windows Power Shell.

Technologies used

Licence

This project is licenced under the MIT Licence.

cars-app's People

Contributors

kev065 avatar levin-ops avatar lampard254 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.