Git Product home page Git Product logo

tour-booking-bp's Introduction

TourMate-bp

contributions

Introduction

A javascript based project. was thinking of what to do in pendemic lockdown. recetly like on start of 2020 i gave interview to a Austria base company tourradar so this project is base of following online resources

so this project is basicly a pointer to js related tips which is can be easily skipped as time passes. Any Noob Developer who wanted to explore world of JS and how things can be done in JS way can go through the project and get the insights. I never worked opensource before in my life. and that could be because of self-conscious about sharing my code it has to start some day. so putting its as my 2020 reveleation since feburary 2020 and this one is first repo. Have to start from somewhere....!

project URL https://travelmate.herokuapp.com/

postman setting to save auto token

pm.environment.set("JWT", pm.response.json().token);

Technologies (Fancy Names)

  • Node (Express)
  • React
  • Redux
  • sass
  • Mongo
  • Docker

travelMate Functionality

As of now very limited data is present in the app. all locations belongs to UAE so if user is in dubai then it will show accurated location around user otherwise i populated it with dummy data travelMate

technical Aspects

marking importent aspects for new developers to understand the basics how things can be done. Frontend

  1. Carousel as vanilla js scrollLeft by default dont have smoth scroll its just jumps
  2. Redux Config its important to note that if REDUX_DEVTOOLS_EXTENSION_COMPOSE is not agvailable on env app will not work so during dev if you want to check on phone it wont work and through error
  3. Lazy Loaded Map The whole component it self is lazy loaded on detail of tour is clicked + until session is not returned from api Stripe payment gateway is not loaded so that is lazy loaded too
  4. If image Not available small trick which works like a charm actually i was very happy first time when i came to know about this.
  5. Auth Header nothing just if else if user is logged in attach header to request interceptor and on response interceptor if token is not valid anymore just remove localstorage so one place to handle all the fuss.
  6. Mixins its very handy if ones want to write media quries i guess its best place to use. here is the usage
  7. close element when clicking outside component belive me there is way of refrence but you can use reference somewhere else but this is not a place to use its better to make one backdrop and listen when clicked on it and close or clear whatever you want.

backend

  1. CatchAsync a decent way to handle error resolved by promise
  2. Mongo GeoJson field should be marked as 2dsphere coordinates are in lnglat sequence to get $geoWithin

tour-booking-bp's People

Contributors

zoomi-raja avatar

Watchers

James Cloos avatar  avatar

tour-booking-bp's Issues

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.