Code Monkey home page Code Monkey logo

ecommerce-backend's Introduction

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

ecommerce-backend's People

Contributors

chathurabuddi avatar chitreshapte avatar giridhar30 avatar nilmadhab avatar psionicalch avatar shivamag00 avatar sksaikia avatar sudhanshugulhane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ecommerce-backend's Issues

Unable to connect to mysql

Hi there

I am actually getting the below error when I try to run this backend. Initially I thought if it is a problem with my localhost mysql but I have other springboot applications which are able to connect to my localhost. I am not sure what am I missing with this springboot application. I also tried creating a mysql database in AWS and tried connecting it but I get the same error.

I can connect to my localhost and aws instance us

ing any database client like sqlyog etc so that means the credentials are definitely correct.

It will be highly appreciated if you can help with fixing this for me?

Attaching my applicationproperties and pom.xml files and also the complete error stack files as text files.

Thanks for the help and support.

FILES AS ZIPPED: files.zip

Inconsistencies in the API specification

Hello, we are building a research tool to generate API test suites and API specification automatically using UI test suites. When we compared the API specification we generate for your web app with the specification provided along with the web application, we found a few inconsistencies. Would you consider this to be a problem with the API specification or with the application?

Here are the API endpoints for which the server provided a 2xx or a 3xx status but the specification does not include them. Some of these endpoints are actually used by the UI to communicate with the server but not documented in the specification.

			"/product-options",
			"/product/update/2-options",
			"/product/update/1-options",
			"/cart-options",
			"/category/create-options",
			"/category/update/1-options",
			"/cart/delete/2-options",
			"/product/add-options",
			"/category/update/2-options",
			"/cart/delete/1-options",
			"/user/signIn-options",
			"/wishlist/add-options",
			"/category-options" 

For example /category-options means that we tried the HTTP request OPTIONS on the API endpoint /category and received a status 200 from the server but there is no corresponding operation defined in the specification.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.