Ecommerce backend apis
Backend https://github.com/webtutsplus/ecommerce-backend
https://limitless-lake-55070.herokuapp.com/swagger-ui.html
Frontend
https://github.com/webtutsplus/ecommerce-vuejs
https://infallible-swartz-b50174.netlify.app/
- This is a Maven Project. Ensure, Maven is installed on your system.
- It is Recommended that you use Linux Based OS.
- It might happen that you have installed XAMPP/LAMPP software (by Bitnami) on your system. Instead of using the db provided by XAMPP/LAMPP by bitnami, it is recommended that you install
mariadb-server
and use it as database while running this application.
###How to run in local
- Rename
src/main/resources/application.properties.example
tosrc/main/resources/application.properties
. - Change the Application Properties (E.g. username/password of DB) present in
resources/application.properties
according to your local mysql-server. - Go to application.properties and comment / uncomment the corresponding front-end url and enter the STRIPE API Keys
- Create a database called
ecommerce
withCHARACTER SET utf8mb4
andCOLLATE utf8mb4_0900_ai_ci
. MariaDB does not supportCOLLATE utf8mb4_0900_ai_ci
. So, if you are using MariaDB, opendatabase-dump.sql
file and replaceCOLLATE utf8mb4_0900_ai_ci
withCOLLATE utf8mb4_general_ci
- Import
database-dump.sql
in it. - To run the application, run the command
sh run.sh
i.e. execute therun.sh
file. - After starting application, go to http://localhost:8080/api/swagger-ui.html/
- The input for updating the category via API is
{
"categoryName":"name",
"imageUrl":"url",
"description":"desc"
}
- Go into pom.xml and comment out the scope for the "spring-boot-starter-tomcat" dependency
mvn package java -jar -Dspring.profiles.active=prod
#admin access email: [email protected] password: admin firstname: admin