Skip to content

A full-stack application developed for the IT Reboot contest to promote Travnik, Bosnia and Herzegovina’s hidden gem. Built with Next.js, Node.js, and MySQL, Travelnik highlights local attractions, culture, and more.

License

hdzcalmir/travelnik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travelnik - Discover Travnik, Bosnia and Herzegovina's Hidden Gem!

Travelnik is developed in:

  1. NextJS
  2. NodeJS
  3. MySQL

To start application we need to start both, frontend and backend.

To start frontend we need to enter client directory and run command:

npm run build to run build

then,

npm run dev for starting dev environemnt

npm start for starting production environment

To start backend we need to enter server directory and run command:

npm start

After that application will run on port 3000.

Link: localhost:3000

After navigating to localhost:3000, this will be the screen that we see.

Demo video

Application Demo Video

It's also important to mention that this application uses three APIs:

  1. Mapbox - It has been used for maps.
  2. Booking - It has been used to fetch apartments available in Travnik from Booking.
  3. OpenAI - It has been used for interaction with tourists and other app users. (This feature was added as bonus after contest.)

To reestablish functionality for the Mapbox API, all you need to do is add the token.

travelnik/client/src/common/consts.ts

Screenshot-5.png

To restore functionality to the OpenAI API, simply add the required key.

travelnik/server/.env

OPENAI_API_KEY="OPEN AI KEY GOES HERE"

To restore functionality to the Booking API, all that is required is to add the key.

travelnik/server/.env

BOOKING_API="BOOKING API KEY GOES HERE"

About

A full-stack application developed for the IT Reboot contest to promote Travnik, Bosnia and Herzegovina’s hidden gem. Built with Next.js, Node.js, and MySQL, Travelnik highlights local attractions, culture, and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •