Skip to content

This is a semi-complete ecommerce backend template in kotliin. Is Semi-Complete, because payment method is a thing very private, that cant be in a template

Notifications You must be signed in to change notification settings

frdlnk/ecommerce_backend_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Ecommerce Backend Template

This is a semi-complete ecommerce backend template in kotliin. Is Semi-Complete, because payment method is a thing very private, that cant be in a template

Usage

  • Clone the repository in a directory of your pc
git clone https://github.com/frdlnk/ecommerce_backend_template.git
  • Open the project in your Java IDE (IntelliJ recommended to Kotlin support)

  • Change this params:

spring.data.mongodb.uri=yourdburi (with local db addres or atlas db address)
spring.data.mongodb.database=yourdatabase (db name)
FROM openjdk:17
COPY "./target/<yourcompiledfile>.jar" "app.jar"  (Change <yourcompiledfile for the name of the .jar file in target folder when app is compiled)
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]

Nginx

You already dockerized this backend, and you are running 2 or more containers, but you want the client side to send requests to only one address?

Well, for this it is necessary to use a web server like Nginx, but this needs to be configured with the nginx.conf

Contribution

If you want to contribute, open a pull request to change some code, create your branch and test all code there, then push it to master branch

License

MIT

About

This is a semi-complete ecommerce backend template in kotliin. Is Semi-Complete, because payment method is a thing very private, that cant be in a template

Topics

Resources

Stars

Watchers

Forks