GithubHelp home page GithubHelp logo

danielmafra / mytrips-frontend-reactjs Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 3.88 MB

A web app made with ReactJS to make reservations at travel destinations and list trips (using a fake API with json-server).

HTML 13.12% JavaScript 69.94% CSS 16.93%
react javascript react-router-dom reactjs css3 html5 frontend web trips travel

mytrips-frontend-reactjs's Introduction

My Trips | Front-end | ReactJS

A web app made with ReactJS to make reservations at travel destinations and list trips (using a fake API with json-server).

Home Destinations My Trips

How to configure the project:

If you use npm, just replace the yarn > npm.

  • Clone the repository to your computer, navigate to the folder and use the command yarn install to install the dependencies.
  • Using the terminal, navigate to the project folder and use the yarn start command.
  • Done! The project will be running on localhost:3000
  • To run the fake API, first access the file at src > services > api.js and follow the commented instructions to configure the host and port.
  • After doing the previous step, open the server.json file that is at the root of the project. In it you must include the information of your fake API.

Where stock is the amount of reservations available for each id and trips are the destinations (in the file contains more detailed explanation).

  • After doing the previous step, navigate to the project folder and use the yarn json-server server.json -p YOUR_PORT (where YOUR_PORT is the port you configured in api.js, example: yarn json-server server.json -p 3333).
  • Done! your fake API is already running and communicating with your front-end!

This project uses:

  • React (ReactJS), Redux, Immer, Axios, React Router DOM, History, JSON Server, React Icons.

Doubts? Send me a message on my social networks. Good luck! ;)

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.