Coder Social home page Coder Social logo

car_rental_app's Introduction

Car rental app

  • using: NextJS, Tailwindcss, headless UI, TypeScript,
  • and concepts like: mobile responsiveness, api management
  • also using RapidApi / the api to get detailed information about every specific unique car model

create new NextJS project

  • mkdir "car_models" open in vscode
npx create-next-app@latest ./

..which will install the latest version in the current folder

For the following configuration i choose:
Typescript - yes
ESLint - no
Tailwind - yes
src directory - no
app router - yes
customize import alias - no

RapidApi

  • to use this api sign up on rapidapi, search for "Cars by API-Ninjas" - api and subscribe to it
  • that allows 3000 request a month!
  • look at the optional paramters that you can give to the request, meaning: these are the filtering options
  • click the button "Test Endpoint" to see what response is coming back (each car has 12 properties, and we are getting 5 cars per page whats just the default limit and can be changed via params)
  • copy the code and paste it into utils/index.ts
  • addtionally copy the credentials from that code snippet to the .env.local

Imagin Studio - car image api

https://www.imagin.studio/car-image-api

  • sign up for 60 days free trial
  • get the customer key and copy/paste into .env.local

  • changed from serverside to clientside rendering in the end because there is a little bug (changed scroll position when changing the url parameters) in NextJS which is hopefully gonna be fixed soon.

car_rental_app's People

Contributors

haudegenhh 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.