It is an contact manager to manage our contacts. Created using spring boot on backend and react js on frontend.
- Java
- Spring boot
- MySQL database
- React Js
- Editors : VS code & Spring tool suite 4
As mentioned the project has two parts and both run on different server
Step-1 : Open your project in spring tool suite 4 IDE
file->import->maven->existing maven project-> click on next -> locate the folder [ContactApi backend] -> click to finish
NOTE: make sure your internet connection is on because maven download jar's required for project to be build.
Step-2 : Create an MySQL database with the name 'contact_api'.
You can change the database related settings - If you want the path of file to change settings is : ContactApi backend\src\main\resources\application.yml
You can create your database by using mysql workbench
CREATE DATABASE `contact_api`;
Step-3 : Run your application
right click on your project name -> Run As -> Spring boot App
If you don't see any errors that means you are good to go. The backend is started and tomcat is running the port 8080
Note: Make sure to do not turn of your backend otherwise your frontend will not work.
Make sure you have node js installed on your machine
Step-1 : Locate the folder 'contactapp frontend' using your terminal or command prompt.
install neccessery libraries
npm i react-router-dom
npm i react-toastify
After the completion of these two you are ready to run the application : to run this type :
npm run dev
Visit the url appear on your terminal : In my case this is [http://localhost:5173/contacts]
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.