Skip to content

Repository files navigation

easybuyapi

Prerequisites
  • JDK 17
  • Maven
  • SQL

Technologies

  • Springboot
  • Spring security
  • Spring data jpa
  • MYSQL

Running with docker

In your docker engine, pull the images from docker hub "theyemi/easybuyapi" and "theyemi/easybuydb"

Run both images in the same network, use "easybuydb as the container name when running the database image. i.e docker run -d --name easybuydb --net easybuy-net -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes theyemi/easybuydb docker run -d --net easybuy-net -p 8080:8080 --name easybuyapi theyemi/easybuyapi This is to ensure that the api uses the database name to map to the database ip address as seen in the database url property value in the application.properties file spring.datasource.url=jdbc:mysql://easybuydb:3306/easybuy

To test with an already registered user account Enter the url in this format

 http://<youripaddress>:8080/easybuyapi/v1/login

using a post request { "email":"ade@gmail.com", "password":"adeyemi" }

To register a user

http://<youripaddress>:8080/easybuyapi/v1/register

using a post request { "email":string, "password":string, "fullname":string, "phonenumber":string, "address":string }

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages