This is a early simulation of a E-shop, using Ionic with Angular for Frontend, and Spring Boot and MySQL for Backend.
-
Node.js
-
NPM
-
Maven (Remember that on Windows you have to configure your path variable "MAVEN_HOME")
-
MySQL or MariaDB
-
JDK 11.
-
Clone repository.
-
Import import.sql file from path backend/ to MySQL.
backend/import.sql
-
Create file
aplication.properties
usingaplication.properties.model.txt
schema. -
Place there your MySQL credentials.
Backend runs at port 8080, And Frontend runs default at port 8100.
With Administrator privilleges:
-
On root path execute
npm update
-
On root path execute
npm i
-
Then execute
npm run update-launch
to install packages and launch the project. -
Or execute
npm start
if packages are installed. It takes aproximetly 1 minute. -
It takes aproximetly 1 minute.
-
On root path execute
npm run w:install
to install packages. -
Or execute
npm run w:launch
if packages are installed to launch the project. -
It takes aproximetly 1 minute.
email: ruben@ruben.com
password: 1234
users
users
Bodyraw (json)
json
{
"email": "test2@test.com",
"name": "test2",
"password": "1234",
"access": "user"
}
user for email
http://localhost:8080/users/ruben@ruben.com
user by email
http://localhost:8080/users/test@test.com
Bodyraw (json)
json
{
"email": "test@test.com",
"name": "test-modified",
"password": "",
"access": "user"
}
employees
http://localhost:8080/employees/
employee for id
http://localhost:8080/employees/2
employee
http://localhost:8080/employees
Bodyraw (json)
json
{
"employee_id": 0,
"imageurl": "https://images.pexels.com/photos/2726111/pexels-photo-2726111.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500",
"name": "Andrea Martín",
"job": "Directora de Proyectos"
}
employee by id
http://localhost:8080/employees/4
Bodyraw (json)
json
{
"employee_id": 4,
"imageurl": "https://images.pexels.com/photos/2726111/pexels-photo-2726111.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500",
"name": "Andrea Martínez",
"job": "Directora de Proyectos"
}
products
http://localhost:8080/products/
products by id
http://localhost:8080/products/1
product
http://localhost:8080/products
Bodyraw (json)
json
{
"imageurl": "https://images.pexels.com/photos/248412/pexels-photo-248412.jpeg?cs=srgb&dl=pexels-pixabay-248412.jpg&fm=jpg",
"name": "Leche Natural",
"description": "Leche natural directa de la vaca",
"price": 3.5
}
user
http://localhost:8080/users/test@test.com
product by id
http://localhost:8080/products/2
employee