DEV Community

Cover image for Flight Management System: Angular 9 + Spring Boot + REST APIs

Flight Management System: Angular 9 + Spring Boot + REST APIs

Sanchit Singhal on May 20, 2020

Abstract The Flight Management System is a Java-based booking solution for flight tickets. It consolidates data provided by different ai...
Collapse
 
mahlatsem profile image
Mahlatse

Hey Sanchit,

I browsed through your project, I see you are a student or at least at the beginning of your journey, and I think you are starting out very well, in my 12 years experience, i haven't seen many take the steps you have taken to build and learn, Well done on getting started.

Do yourself a favour and keep improving the project as you learn better practices, I would even suggest coming back periodically and looking at the commit history to see improvements you would have made in 6 months, a year or 3 from now.

I always recommend the Clean code book, so please check it out, especially chapter 2.

All the best on your journey

Collapse
 
sanchit2107 profile image
Sanchit Singhal

Thanks @Mahalaste for these kind words and appreciating my work. I keep note down your all suggesting points and will work on that.
Again thanks a lot for this recommendation of the book. I will surely look into it and will be practicing more on projects and improve them.

Regards
Sanchit Singhal
Collapse
 
rangasatyaviswapavan profile image
Rangasatyaviswapavan • Edited

you called these methods
localhost:9092/signup
localhost:9092/authenticate
localhost:9092/getRole?username='+ username
in AuthenticationService file but they are not implemented in spring boot
Please do help me!

Collapse
 
suvarnaswami profile image
suvarnaswami

Hi Sanchit, I have angular skillset ..and I want to be fullvstack developer I just gone through you project and I am very much thankful to you and I have so many doubts as part of learning , how I can reach you?

Collapse
 
dimakzela profile image
Dimakatso

Hi,

Springboot project is failing to build because i don't have ojdbc8 installed on my machine. Maybe you could've used embbed db or use docker compose configure ojdbc8.

Collapse
 
sanchit2107 profile image
Sanchit Singhal

Hello,

Yes I used the maven framework for building the project structure. You can see the pom.xml file in the root folder of the project structure. In that pom.xml file, there is a dependency of ojdbc which is not provided by the Spring framework and not supported by the maven. As there is no pre-defined oracle dependency like MySQL, MongoDB, and all. So I used to create the custom user-defined dependency of oracle and add it to the pom.xml file.

Steps for creating custom user-defined dependency for oracle:

  1. You have the ojdbc driver .jar file installed of any version (like I am using ojdbc6.jar)
  2. Now copy this .jar file.
  3. Go to the path in your C Drive: C:\Users\username\ .m2\repository\com\oracle\ojdbc6\11.2.0.3
  4. Here 11.2.0.3 indicates the version of ojdbc6.
  5. .m2 folder can be seen after insatlling maven on your system.
  6. Then you can see that there is no .jar file present in this path specified in step-3.
  7. Now you need to paste the driver (ojdbc6.jar file) in this path and rename that file as ojdbc6-11.2.0.3.jar (ojdbc6-version.jar- here version is 11.2.0.3 in my case).
  8. After this you need to add the oracle dependecy in the pom.xml and the force update the project.
  9. Now you are able to build the SpringBoot project without failing.

For any more query please ping here in the comment section.

Thanks

Happy learning

Collapse
 
caelinsutch profile image
caelinsutch

Why Java?

Collapse
 
sanchit2107 profile image
Sanchit Singhal

Hello,

First of all, I would like to tell you that I know java very well and learned the frameworks based on Java since the last few months. So I choose Java as a backend. Apart from this many of the big MNCs are still working on Java for building their products and in the current scenario Java is one of the best programming languages worldwide. That's why I choose Spring Boot- a Java-based framework that provides the Layered Architecture.

Thanks

Happy Learning

Collapse
 
suwathika profile image
suwathika

Hy sanchit,
I browsed your project it is very useful for my project. Do you plzz share tha database for this project?

Collapse
 
ask4abid profile image
Muhammad Abid

HI, Sanchit ,
Hopefully you are doing great. could you please share DB of this project ? for further working >

Looking forward,
Abid