Skip to content

webtutsplus/ecommerce-backend

Repository files navigation

ecommerce

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

  1. Rename src/main/resources/application.properties.example to src/main/resources/application.properties.
  2. Change the Application Properties (E.g. username/password of DB) present in resources/application.properties according to your local mysql-server.
  3. Go to application.properties and comment / uncomment the corresponding front-end url and enter the STRIPE API Keys
  4. Create a database called ecommerce with CHARACTER SET utf8mb4 and COLLATE utf8mb4_0900_ai_ci. MariaDB does not support COLLATE utf8mb4_0900_ai_ci. So, if you are using MariaDB, open database-dump.sql file and replace COLLATE utf8mb4_0900_ai_ci with COLLATE utf8mb4_general_ci
  5. Import database-dump.sql in it.
  6. To run the application, run the command sh run.sh i.e. execute the run.sh file.
  7. After starting application, go to http://localhost:8080/api/swagger-ui.html/

Category/Update/{id}

  • The input for updating the category via API is
{
    "categoryName":"name",
    "imageUrl":"url",
    "description":"desc"
}

In case of "java.lang.IllegalStateException: Unable to load cache item error":

  • Go into pom.xml and comment out the scope for the "spring-boot-starter-tomcat" dependency

How to use prod profile

mvn package java -jar -Dspring.profiles.active=prod

Run in production server with latest changes in master

#admin access email: [email protected] password: admin firstname: admin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published