├── indeed-clone
├── client
│ ├── public
│ │ ├── robots.txt
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── index.html
│ ├── src
│ │ ├── routes
│ │ │ └── route.js
│ │ ├── setupTests.js
│ │ ├── App.test.js
│ │ ├── index.css
│ │ ├── reportWebVitals.js
│ │ ├── index.js
│ │ ├── services
│ │ │ └── api.js
│ │ ├── App.js
│ │ ├── App.css
│ │ ├── components
│ │ │ ├── Dropdown.jsx
│ │ │ └── Header.jsx
│ │ ├── pages
│ │ │ ├── Home.jsx
│ │ │ ├── AllPosts.jsx
│ │ │ └── CreatePost.jsx
│ │ └── logo.svg
│ ├── .gitignore
│ ├── package.json
│ └── README.md
└── server
│ ├── src
│ ├── main
│ │ ├── resources
│ │ │ └── application.properties
│ │ └── java
│ │ │ └── com
│ │ │ └── indeed
│ │ │ └── server
│ │ │ ├── constants
│ │ │ └── APIConstants.java
│ │ │ ├── dao
│ │ │ └── PostDao.java
│ │ │ ├── service
│ │ │ ├── PostService.java
│ │ │ └── PostServiceImpl.java
│ │ │ ├── dto
│ │ │ └── PostDTO.java
│ │ │ ├── ServerApplication.java
│ │ │ ├── config
│ │ │ └── MongoConfig.java
│ │ │ ├── model
│ │ │ └── PostModal.java
│ │ │ └── controller
│ │ │ └── PostController.java
│ └── test
│ │ └── java
│ │ └── com
│ │ └── indeed
│ │ └── server
│ │ └── ServerApplicationTests.java
│ ├── .gitignore
│ └── pom.xml
├── invoice-app
├── client
│ ├── public
│ │ ├── robots.txt
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── index.html
│ ├── src
│ │ ├── App.js
│ │ ├── setupTests.js
│ │ ├── App.test.js
│ │ ├── index.css
│ │ ├── reportWebVitals.js
│ │ ├── components
│ │ │ ├── Header.jsx
│ │ │ ├── Invoices.jsx
│ │ │ └── AddInvoice.jsx
│ │ ├── index.js
│ │ ├── App.css
│ │ ├── services
│ │ │ └── api.js
│ │ ├── logo.svg
│ │ └── pages
│ │ │ └── Home.jsx
│ ├── .gitignore
│ ├── package.json
│ └── README.md
└── server
│ ├── src
│ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── invoiceprocessing
│ │ │ │ └── server
│ │ │ │ ├── dao
│ │ │ │ └── InvoiceDao.java
│ │ │ │ ├── services
│ │ │ │ ├── InvoiceService.java
│ │ │ │ └── InvoiceServiceImpl.java
│ │ │ │ ├── ServerApplication.java
│ │ │ │ ├── controller
│ │ │ │ └── InvoiceController.java
│ │ │ │ └── model
│ │ │ │ └── Invoice.java
│ │ └── resources
│ │ │ └── application.properties
│ └── test
│ │ └── java
│ │ └── com
│ │ └── invoiceprocessing
│ │ └── server
│ │ └── ServerApplicationTests.java
│ ├── .gitignore
│ └── pom.xml
├── crud-application
├── crud-app
│ ├── public
│ │ ├── robots.txt
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── index.html
│ ├── src
│ │ ├── Assets
│ │ │ └── Images
│ │ │ │ ├── youtube.png
│ │ │ │ ├── NotFound.jpg
│ │ │ │ └── InstaTele.jpeg
│ │ ├── Component
│ │ │ ├── NotFound.jsx
│ │ │ ├── NavBar.jsx
│ │ │ ├── CodeForInterview.jsx
│ │ │ ├── AddUser.jsx
│ │ │ ├── AllUsers.jsx
│ │ │ └── EditUser.jsx
│ │ ├── setupTests.js
│ │ ├── App.test.js
│ │ ├── index.css
│ │ ├── reportWebVitals.js
│ │ ├── index.js
│ │ ├── Service
│ │ │ └── api.js
│ │ ├── App.css
│ │ ├── Database
│ │ │ └── db.json
│ │ ├── App.js
│ │ └── logo.svg
│ ├── .gitignore
│ ├── package.json
│ └── README.md
└── crud
│ ├── src
│ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── springcrud
│ │ │ │ └── crud
│ │ │ │ ├── dao
│ │ │ │ └── UserDao.java
│ │ │ │ ├── CrudApplication.java
│ │ │ │ ├── services
│ │ │ │ ├── UserService.java
│ │ │ │ └── UserServiceImpl.java
│ │ │ │ ├── controller
│ │ │ │ └── UserController.java
│ │ │ │ └── model
│ │ │ │ └── User.java
│ │ └── resources
│ │ │ └── application.properties
│ └── test
│ │ └── java
│ │ └── com
│ │ └── springcrud
│ │ └── crud
│ │ └── CrudApplicationTests.java
│ ├── .gitignore
│ └── pom.xml
├── quiz-application
├── client
│ ├── public
│ │ ├── robots.txt
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── index.html
│ ├── src
│ │ ├── assets
│ │ │ └── images
│ │ │ │ └── bg-cover.png
│ │ ├── styles
│ │ │ ├── header.module.css
│ │ │ ├── input.module.css
│ │ │ ├── background.module.css
│ │ │ └── breadcrumb.module.css
│ │ ├── pages
│ │ │ ├── Quiz.jsx
│ │ │ ├── Home.jsx
│ │ │ └── Login.jsx
│ │ ├── constants
│ │ │ ├── route.js
│ │ │ └── constant.js
│ │ ├── setupTests.js
│ │ ├── App.test.js
│ │ ├── components
│ │ │ ├── Header.jsx
│ │ │ ├── BackgroundCanvas.jsx
│ │ │ ├── button
│ │ │ │ └── Button.jsx
│ │ │ ├── input
│ │ │ │ └── Input.jsx
│ │ │ └── Breadcrumb.jsx
│ │ ├── reportWebVitals.js
│ │ ├── context
│ │ │ └── DataProvider.jsx
│ │ ├── index.css
│ │ ├── index.js
│ │ ├── App.css
│ │ ├── services
│ │ │ └── api.js
│ │ ├── App.js
│ │ ├── utils
│ │ │ └── common-utils.js
│ │ └── logo.svg
│ ├── .gitignore
│ ├── package.json
│ └── README.md
└── server
│ ├── src
│ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── quizapplication
│ │ │ │ └── server
│ │ │ │ ├── constants
│ │ │ │ ├── ParameterConstants.java
│ │ │ │ ├── APIConstants.java
│ │ │ │ ├── ApplicationConstants.java
│ │ │ │ └── CodeConstant.java
│ │ │ │ ├── dto
│ │ │ │ ├── RequestHeaderDTO.java
│ │ │ │ └── UserProfileDTO.java
│ │ │ │ ├── dao
│ │ │ │ ├── QuestionDao.java
│ │ │ │ └── UserProfileDao.java
│ │ │ │ ├── ServerApplication.java
│ │ │ │ ├── service
│ │ │ │ ├── UserProfileService.java
│ │ │ │ ├── QuestionService.java
│ │ │ │ └── impl
│ │ │ │ │ ├── QuestionServiceImpl.java
│ │ │ │ │ └── UserProfileServiceImpl.java
│ │ │ │ ├── utils
│ │ │ │ ├── Utility.java
│ │ │ │ └── CommonResponseEntity.java
│ │ │ │ ├── model
│ │ │ │ ├── QuestionModel.java
│ │ │ │ └── UserProfileModel.java
│ │ │ │ └── controller
│ │ │ │ ├── QuestionController.java
│ │ │ │ └── UserProfileController.java
│ │ └── resources
│ │ │ └── application.properties
│ └── test
│ │ └── java
│ │ └── com
│ │ └── quizapplication
│ │ └── server
│ │ └── ServerApplicationTests.java
│ ├── .gitignore
│ └── pom.xml
├── employee-management-system
├── ems-client
│ ├── public
│ │ ├── robots.txt
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── index.html
│ ├── src
│ │ ├── pages
│ │ │ ├── Dashboard.jsx
│ │ │ ├── EmployeeDetail.jsx
│ │ │ ├── Main.jsx
│ │ │ ├── AllEmployees.jsx
│ │ │ └── Home.jsx
│ │ ├── setupTests.js
│ │ ├── App.test.js
│ │ ├── components
│ │ │ ├── common
│ │ │ │ ├── SuspenseLoader.jsx
│ │ │ │ └── ErrorComponent.jsx
│ │ │ ├── header
│ │ │ │ ├── Header.jsx
│ │ │ │ └── Search.jsx
│ │ │ ├── home
│ │ │ │ └── Information.jsx
│ │ │ └── sidebar
│ │ │ │ ├── SideBar.jsx
│ │ │ │ └── SideBarContent.jsx
│ │ ├── constants
│ │ │ └── constant.js
│ │ ├── index.css
│ │ ├── reportWebVitals.js
│ │ ├── store
│ │ │ ├── slice
│ │ │ │ └── userSlice.js
│ │ │ └── store.js
│ │ ├── index.js
│ │ ├── service
│ │ │ └── api.js
│ │ ├── App.css
│ │ ├── config
│ │ │ └── sidebar.config.js
│ │ ├── Dummy.js
│ │ ├── routes
│ │ │ └── routes.js
│ │ ├── App.js
│ │ └── logo.svg
│ ├── .gitignore
│ ├── package.json
│ └── README.md
└── ems-service
│ ├── images
│ ├── Capture4.PNG
│ ├── Capture2.PNG1679483031629
│ ├── Capture2.PNG1679486064367
│ ├── Capture2.PNG1679486179015
│ ├── Capture2.PNG1679486238840
│ ├── Capture3.PNG1679483065201
│ ├── Capture3.PNG1679486282186
│ ├── Capture4.PNG1679486498635
│ ├── Capture4.PNG1679486564746
│ ├── Capture4.PNG1679486719999
│ ├── Capture4.PNG1679486817205
│ ├── Capture4.PNG1679487604766
│ ├── photo-1438761681033-6461ffad8d80.jfif1679487640588
│ └── photo-1438761681033-6461ffad8d80.jfif1679487688342
│ ├── src
│ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── emsservice
│ │ │ │ ├── repository
│ │ │ │ └── EmployeeRepo.java
│ │ │ │ ├── service
│ │ │ │ ├── EmployeeService.java
│ │ │ │ ├── FileService.java
│ │ │ │ └── impl
│ │ │ │ │ ├── FileServiceImpl.java
│ │ │ │ │ └── EmployeeServiceImpl.java
│ │ │ │ ├── EmsServiceApplication.java
│ │ │ │ ├── controller
│ │ │ │ ├── EmployeeController.java
│ │ │ │ └── FileController.java
│ │ │ │ └── model
│ │ │ │ └── Employee.java
│ │ └── resources
│ │ │ └── application.properties
│ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── emsservice
│ │ └── EmsServiceApplicationTests.java
│ ├── .gitignore
│ └── pom.xml
└── .gitignore
/indeed-clone/client/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/invoice-app/client/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/crud-application/crud-app/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/quiz-application/client/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/employee-management-system/ems-client/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/invoice-app/client/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/invoice-app/client/public/favicon.ico
--------------------------------------------------------------------------------
/invoice-app/client/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/invoice-app/client/public/logo192.png
--------------------------------------------------------------------------------
/invoice-app/client/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/invoice-app/client/public/logo512.png
--------------------------------------------------------------------------------
/indeed-clone/client/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/indeed-clone/client/public/favicon.ico
--------------------------------------------------------------------------------
/indeed-clone/client/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/indeed-clone/client/public/logo192.png
--------------------------------------------------------------------------------
/indeed-clone/client/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/indeed-clone/client/public/logo512.png
--------------------------------------------------------------------------------
/quiz-application/client/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/quiz-application/client/public/favicon.ico
--------------------------------------------------------------------------------
/quiz-application/client/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/quiz-application/client/public/logo192.png
--------------------------------------------------------------------------------
/quiz-application/client/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/quiz-application/client/public/logo512.png
--------------------------------------------------------------------------------
/crud-application/crud-app/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/crud-application/crud-app/public/favicon.ico
--------------------------------------------------------------------------------
/crud-application/crud-app/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/crud-application/crud-app/public/logo192.png
--------------------------------------------------------------------------------
/crud-application/crud-app/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/crud-application/crud-app/public/logo512.png
--------------------------------------------------------------------------------
/crud-application/crud-app/src/Assets/Images/youtube.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/crud-application/crud-app/src/Assets/Images/youtube.png
--------------------------------------------------------------------------------
/quiz-application/client/src/assets/images/bg-cover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/quiz-application/client/src/assets/images/bg-cover.png
--------------------------------------------------------------------------------
/quiz-application/client/src/styles/header.module.css:
--------------------------------------------------------------------------------
1 | .container > p {
2 | font-size: 60px;
3 | background-color: var(--color-FFFFFF);
4 | width: fit-content;
5 | }
--------------------------------------------------------------------------------
/crud-application/crud-app/src/Assets/Images/NotFound.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/crud-application/crud-app/src/Assets/Images/NotFound.jpg
--------------------------------------------------------------------------------
/employee-management-system/ems-client/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-client/public/favicon.ico
--------------------------------------------------------------------------------
/employee-management-system/ems-client/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-client/public/logo192.png
--------------------------------------------------------------------------------
/employee-management-system/ems-client/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-client/public/logo512.png
--------------------------------------------------------------------------------
/quiz-application/client/src/pages/Quiz.jsx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | const Quiz = () => {
5 |
6 | return (
7 |
Quiz
8 | )
9 | }
10 |
11 | export default Quiz;
--------------------------------------------------------------------------------
/crud-application/crud-app/src/Assets/Images/InstaTele.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/crud-application/crud-app/src/Assets/Images/InstaTele.jpeg
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture4.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture4.PNG
--------------------------------------------------------------------------------
/invoice-app/client/src/App.js:
--------------------------------------------------------------------------------
1 |
2 | import Home from './pages/Home';
3 |
4 | function App() {
5 | return (
6 |
7 | );
8 | }
9 |
10 | export default App;
11 |
--------------------------------------------------------------------------------
/indeed-clone/client/src/routes/route.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | export const routePath = {
4 | home : '/',
5 | posts : '/posts',
6 | create : '/create',
7 | invalid : '/*'
8 | }
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture2.PNG1679483031629:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture2.PNG1679483031629
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture2.PNG1679486064367:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture2.PNG1679486064367
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture2.PNG1679486179015:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture2.PNG1679486179015
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture2.PNG1679486238840:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture2.PNG1679486238840
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture3.PNG1679483065201:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture3.PNG1679483065201
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture3.PNG1679486282186:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture3.PNG1679486282186
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture4.PNG1679486498635:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture4.PNG1679486498635
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture4.PNG1679486564746:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture4.PNG1679486564746
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture4.PNG1679486719999:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture4.PNG1679486719999
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture4.PNG1679486817205:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture4.PNG1679486817205
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/Capture4.PNG1679487604766:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/Capture4.PNG1679487604766
--------------------------------------------------------------------------------
/employee-management-system/ems-client/src/pages/Dashboard.jsx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | const Dashboard = () => {
6 |
7 | return (
8 | Hello
9 | )
10 | }
11 |
12 | export default Dashboard;
--------------------------------------------------------------------------------
/employee-management-system/ems-client/src/pages/EmployeeDetail.jsx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | const EmployeeDetail = () => {
5 |
6 | return (
7 | Detail
8 | )
9 | }
10 |
11 | export default EmployeeDetail;
--------------------------------------------------------------------------------
/indeed-clone/server/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.data.mongodb.uri=mongodb+srv://user:codeforinterview@indeed-clone.yalykvn.mongodb.net/?retryWrites=true&w=majority
2 | spring.data.mongodb.database=indeed-clone
3 |
--------------------------------------------------------------------------------
/quiz-application/server/src/main/java/com/quizapplication/server/constants/ParameterConstants.java:
--------------------------------------------------------------------------------
1 | package com.quizapplication.server.constants;
2 |
3 | public class ParameterConstants {
4 |
5 | public static final String RH_PHONE = "phone";
6 | }
7 |
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/photo-1438761681033-6461ffad8d80.jfif1679487640588:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/photo-1438761681033-6461ffad8d80.jfif1679487640588
--------------------------------------------------------------------------------
/employee-management-system/ems-service/images/photo-1438761681033-6461ffad8d80.jfif1679487688342:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kunaltyagi9/Spring-Boot-Projects/HEAD/employee-management-system/ems-service/images/photo-1438761681033-6461ffad8d80.jfif1679487688342
--------------------------------------------------------------------------------
/quiz-application/server/src/main/java/com/quizapplication/server/dto/RequestHeaderDTO.java:
--------------------------------------------------------------------------------
1 | package com.quizapplication.server.dto;
2 |
3 | import lombok.Data;
4 |
5 | @Data
6 | public class RequestHeaderDTO {
7 |
8 | private long phone;
9 | }
10 |
--------------------------------------------------------------------------------
/quiz-application/client/src/constants/route.js:
--------------------------------------------------------------------------------
1 |
2 | export const routePath = {
3 | home: '/home',
4 | login: '/login',
5 | quiz: '/quiz',
6 | result: '/result',
7 | invalid: '*'
8 | }
9 |
10 | export const API_URL = "http://localhost:8080"
--------------------------------------------------------------------------------
/crud-application/crud-app/src/Component/NotFound.jsx:
--------------------------------------------------------------------------------
1 | import notfound from '../Assets/Images/NotFound.jpg';
2 |
3 | const NotFound = () => {
4 | return (
5 |
6 | )
7 | }
8 |
9 | export default NotFound;
--------------------------------------------------------------------------------
/indeed-clone/server/src/main/java/com/indeed/server/constants/APIConstants.java:
--------------------------------------------------------------------------------
1 | package com.indeed.server.constants;
2 |
3 | public class APIConstants {
4 |
5 | public static final String GET_ALL_POSTS = "/posts";
6 |
7 | public static final String SAVE_POST = "/post";
8 | }
9 |
--------------------------------------------------------------------------------
/indeed-clone/client/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/invoice-app/client/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/quiz-application/client/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/crud-application/crud-app/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/indeed-clone/client/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render();
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/indeed-clone/server/src/main/java/com/indeed/server/dao/PostDao.java:
--------------------------------------------------------------------------------
1 | package com.indeed.server.dao;
2 |
3 | import com.indeed.server.model.PostModal;
4 | import org.springframework.data.mongodb.repository.MongoRepository;
5 |
6 | public interface PostDao extends MongoRepository {
7 | }
8 |
--------------------------------------------------------------------------------
/invoice-app/client/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render();
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/quiz-application/client/src/styles/input.module.css:
--------------------------------------------------------------------------------
1 | .inputText {
2 | font-size: 16px;
3 | font-weight: 500;
4 | width: 100%;
5 | box-sizing: border-box;
6 | padding: 15px;
7 | border-radius: 4px 4px 0 0;
8 | margin-top: 20px;
9 | /* color: var(--color-FFFFFF); */
10 | }
--------------------------------------------------------------------------------
/employee-management-system/ems-client/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/quiz-application/client/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render();
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/crud-application/crud-app/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render();
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/crud-application/crud/src/main/java/com/springcrud/crud/dao/UserDao.java:
--------------------------------------------------------------------------------
1 | package com.springcrud.crud.dao;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import com.springcrud.crud.model.User;
6 |
7 | public interface UserDao extends JpaRepository {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/employee-management-system/ems-client/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render();
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/quiz-application/server/src/main/java/com/quizapplication/server/dto/UserProfileDTO.java:
--------------------------------------------------------------------------------
1 | package com.quizapplication.server.dto;
2 |
3 | import lombok.Data;
4 |
5 | @Data
6 | public class UserProfileDTO {
7 |
8 | private Long phone;
9 |
10 | private String name;
11 |
12 | private String email;
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/invoice-app/server/src/main/java/com/invoiceprocessing/server/dao/InvoiceDao.java:
--------------------------------------------------------------------------------
1 | package com.invoiceprocessing.server.dao;
2 |
3 | import com.invoiceprocessing.server.model.Invoice;
4 | import org.springframework.data.jpa.repository.JpaRepository;
5 |
6 | public interface InvoiceDao extends JpaRepository {
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/crud-application/crud/src/test/java/com/springcrud/crud/CrudApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.springcrud.crud;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class CrudApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/indeed-clone/server/src/test/java/com/indeed/server/ServerApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.indeed.server;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class ServerApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/employee-management-system/ems-service/src/main/java/com/example/emsservice/repository/EmployeeRepo.java:
--------------------------------------------------------------------------------
1 | package com.example.emsservice.repository;
2 |
3 | import com.example.emsservice.model.Employee;
4 | import org.springframework.data.jpa.repository.JpaRepository;
5 |
6 | public interface EmployeeRepo extends JpaRepository {
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/invoice-app/server/src/test/java/com/invoiceprocessing/server/ServerApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.invoiceprocessing.server;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class ServerApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/quiz-application/server/src/test/java/com/quizapplication/server/ServerApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.quizapplication.server;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class ServerApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/employee-management-system/ems-service/src/test/java/com/example/emsservice/EmsServiceApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.emsservice;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class EmsServiceApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/quiz-application/client/src/components/Header.jsx:
--------------------------------------------------------------------------------
1 |
2 | import styles from '../styles/header.module.css';
3 | import Breadcrumb from './Breadcrumb';
4 |
5 | const Header = () => {
6 |
7 | return (
8 |
12 | )
13 | }
14 |
15 | export default Header;
--------------------------------------------------------------------------------
/indeed-clone/server/src/main/java/com/indeed/server/service/PostService.java:
--------------------------------------------------------------------------------
1 | package com.indeed.server.service;
2 |
3 | import com.indeed.server.dto.PostDTO;
4 | import com.indeed.server.model.PostModal;
5 |
6 | import java.util.List;
7 |
8 | public interface PostService {
9 |
10 | public List getAllPosts();
11 |
12 | public PostModal savePost(PostDTO post);
13 | }
14 |
--------------------------------------------------------------------------------
/invoice-app/server/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | #MYSQL DATABASE CONFIGURATIONS
2 | spring.datasource.url=jdbc:mysql:///invoiceprocessingsystem
3 | spring.datasource.username=root
4 | spring.datasource.password=codeforinterview
5 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
6 |
7 | #HIBERNATE CONFIGURATIONS
8 | spring.jpa.hibernate.ddl-auto=update
9 | spring.jpa.show-sql=true
--------------------------------------------------------------------------------
/employee-management-system/ems-client/src/components/common/SuspenseLoader.jsx:
--------------------------------------------------------------------------------
1 |
2 | import { Typography, CircularProgress, Box } from "@mui/material";
3 |
4 |
5 | const SuspenseLoader = () => {
6 |
7 | return (
8 |
9 |
10 | Loading...
11 |
12 | )
13 | }
14 |
15 | export default SuspenseLoader;
--------------------------------------------------------------------------------
/quiz-application/server/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | #MYSQL DATABASE CONFIGURATIONS
2 | spring.datasource.url=jdbc:mysql:///quizapplication
3 | spring.datasource.username=root
4 | spring.datasource.password=codeforinterview
5 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
6 |
7 | #HIBERNATE CONFIGURATIONS
8 | spring.jpa.hibernate.ddl-auto=update
9 | spring.jpa.show-sql=true
10 |
--------------------------------------------------------------------------------
/indeed-clone/server/src/main/java/com/indeed/server/dto/PostDTO.java:
--------------------------------------------------------------------------------
1 | package com.indeed.server.dto;
2 |
3 | import lombok.Data;
4 |
5 | @Data
6 | public class PostDTO {
7 |
8 | private String profile;
9 |
10 | private String type;
11 |
12 | private String description;
13 |
14 | private String experience;
15 |
16 | private String technology[];
17 |
18 | private String salary;
19 | }
20 |
--------------------------------------------------------------------------------
/employee-management-system/ems-client/src/constants/constant.js:
--------------------------------------------------------------------------------
1 | export const companyLogo = 'https://cdn.cookielaw.org/logos/bf68afa0-3c8d-4d2e-9472-6b54f14f5822/c0260794-d5a4-4dee-be60-c94a329c4569/14f6654a-d2ca-4468-a2e3-1c154ca392fd/Gilead_Logo_standard_RGB.png';
2 | export const sideBarImage='https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8ZW1wbG95ZWV8ZW58MHx8MHx8&w=1000&q=80';
--------------------------------------------------------------------------------
/crud-application/crud/src/main/java/com/springcrud/crud/CrudApplication.java:
--------------------------------------------------------------------------------
1 | package com.springcrud.crud;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class CrudApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(CrudApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/indeed-clone/server/src/main/java/com/indeed/server/ServerApplication.java:
--------------------------------------------------------------------------------
1 | package com.indeed.server;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class ServerApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(ServerApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/quiz-application/client/src/styles/background.module.css:
--------------------------------------------------------------------------------
1 | .container {
2 | padding: 50px;
3 | margin: 50px auto;
4 | display: flex;
5 | flex-direction: column;
6 | align-items: center;
7 | background-color: #D088E5;
8 | width: 50%;
9 | border-radius: 10px;
10 | }
11 |
12 | .cover {
13 | background-color: var(--color-FFFFFF);
14 | border-radius: 10px;
15 | width: 100%;
16 | padding: 10px;
17 | }
--------------------------------------------------------------------------------
/indeed-clone/client/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/invoice-app/client/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/invoice-app/server/src/main/java/com/invoiceprocessing/server/services/InvoiceService.java:
--------------------------------------------------------------------------------
1 | package com.invoiceprocessing.server.services;
2 |
3 | import com.invoiceprocessing.server.model.Invoice;
4 |
5 | import java.util.List;
6 |
7 | public interface InvoiceService {
8 |
9 | public Invoice addInvoice(Invoice invoice);
10 |
11 | public List getInvoices();
12 |
13 | public Invoice deleteInvoice(long id);
14 | }
15 |
--------------------------------------------------------------------------------
/crud-application/crud-app/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/quiz-application/client/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/quiz-application/server/src/main/java/com/quizapplication/server/dao/QuestionDao.java:
--------------------------------------------------------------------------------
1 | package com.quizapplication.server.dao;
2 |
3 | import com.quizapplication.server.model.QuestionModel;
4 | import org.springframework.data.jpa.repository.JpaRepository;
5 |
6 | import java.util.List;
7 |
8 | public interface QuestionDao extends JpaRepository {
9 |
10 | List findByCategory(String category);
11 | }
12 |
--------------------------------------------------------------------------------
/indeed-clone/client/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/invoice-app/client/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/crud-application/crud-app/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/indeed-clone/client/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = onPerfEntry => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/invoice-app/client/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = onPerfEntry => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/invoice-app/server/src/main/java/com/invoiceprocessing/server/ServerApplication.java:
--------------------------------------------------------------------------------
1 | package com.invoiceprocessing.server;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class ServerApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(ServerApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/quiz-application/server/src/main/java/com/quizapplication/server/ServerApplication.java:
--------------------------------------------------------------------------------
1 | package com.quizapplication.server;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class ServerApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(ServerApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/crud-application/crud-app/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = onPerfEntry => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/employee-management-system/ems-client/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/quiz-application/client/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = onPerfEntry => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/quiz-application/client/src/styles/breadcrumb.module.css:
--------------------------------------------------------------------------------
1 | .breadcrumb {
2 | margin-top: 10px;
3 | padding: 0 5px;
4 | list-style: none;
5 | list-style-type: none;
6 | display: flex;
7 | align-items: center;
8 | background-color: var(--color-FFFFFF);
9 | width: fit-content;
10 | }
11 |
12 | .breadcrumbItem {
13 | margin-right: 10px;
14 | }
15 |
16 | .breadcrumbItem::after {
17 | content: "/";
18 | margin-left: 10px;
19 | }
--------------------------------------------------------------------------------
/employee-management-system/ems-client/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/crud-application/crud/src/main/java/com/springcrud/crud/services/UserService.java:
--------------------------------------------------------------------------------
1 | package com.springcrud.crud.services;
2 |
3 | import java.util.List;
4 |
5 | import com.springcrud.crud.model.User;
6 |
7 | public interface UserService {
8 |
9 | public List getUsers();
10 |
11 | public User getUser(long userId);
12 |
13 | public User addUser(User user);
14 |
15 | public User updateUser(User user);
16 |
17 | public User deleteUser(long userId);
18 | }
--------------------------------------------------------------------------------
/employee-management-system/ems-client/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = onPerfEntry => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/quiz-application/server/src/main/java/com/quizapplication/server/dao/UserProfileDao.java:
--------------------------------------------------------------------------------
1 | package com.quizapplication.server.dao;
2 |
3 | import com.quizapplication.server.model.UserProfileModel;
4 | import jakarta.transaction.Transactional;
5 | import org.springframework.data.jpa.repository.JpaRepository;
6 |
7 | @Transactional
8 | public interface UserProfileDao extends JpaRepository {
9 |
10 | UserProfileModel findByPhone(Long phone);
11 | }
12 |
--------------------------------------------------------------------------------
/crud-application/crud/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | # MySQL Database Configuration
2 | spring.datasource.url=jdbc:mysql:///cruddatabase
3 | spring.datasource.username=root
4 | spring.datasource.password=codeforinterview
5 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
6 |
7 | # Hibermate Configuration
8 | spring.jpa.hibernate.ddl-auto=update
9 | spring.jpa.show-sql=true
10 | spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
11 |
--------------------------------------------------------------------------------
/quiz-application/client/src/components/BackgroundCanvas.jsx:
--------------------------------------------------------------------------------
1 |
2 | import styles from '../styles/background.module.css';
3 | import Header from './Header';
4 |
5 | const BackgroundCanvas = ({ children }) => {
6 |
7 | return (
8 |
9 |
10 |
11 | {children}
12 |
13 |
14 | )
15 | }
16 |
17 | export default BackgroundCanvas
--------------------------------------------------------------------------------
/invoice-app/client/src/components/Header.jsx:
--------------------------------------------------------------------------------
1 |
2 | import { AppBar, Toolbar } from '@mui/material';
3 |
4 | const Header = () => {
5 | const logo = "https://dashboard.getinvoice.co/dboard/img/logo.png";
6 |
7 | return (
8 |
9 |
10 |
11 |
12 |
13 | )
14 | }
15 |
16 | export default Header;
--------------------------------------------------------------------------------
/quiz-application/server/src/main/java/com/quizapplication/server/service/UserProfileService.java:
--------------------------------------------------------------------------------
1 | package com.quizapplication.server.service;
2 |
3 | import com.quizapplication.server.dto.RequestHeaderDTO;
4 | import com.quizapplication.server.dto.UserProfileDTO;
5 | import org.springframework.http.ResponseEntity;
6 |
7 | public interface UserProfileService {
8 |
9 | public ResponseEntity