Skip to content

Web shop (flower shop) done as part of a University course "Script languages"

Notifications You must be signed in to change notification settings

irinatomic/Web_flower_shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web app - flower shop

This project was done as a project for a University subject "Script languages". The task was to create a web app that is something like a web shop. The idea was to create it for Serbian marketplace so the names are in Serbian. This is a flower shop with 2 sides - admin and a user side. Created admin and users can be seen in this file.

Architecture

  1. auth_servis: this service is responsible for the authentication.
  2. api_servis: this service acts as a backend that communicates with the database. The documentation for the endpoints can be found in docs.
  3. app_servis: this is the frontend which serves both the user and admin app.

Running the app

First, start the MySQLDatabase and Apache Web Server on your computer (this can be done through XAMPP).

Secondly, deploy the database as seen in Deploying the database. From the api_servis, app_servis, and auth_servis folders run:

npm install
node app

The user app: http://localhost:8000/user The admin app: http://localhost:8000/admin

API endpoints

API endpoints are defined in the:

Directory Documentation
Cvet Cvet API Endpoints
Kategorija Kategorija API Endpoints
Narudzbina Narudzbina API Endpoints
Proizvod Proizvod API Endpoints

Deploying the database

Database schema can be seen in database.sql
database_schema

From the api_servis run

sequelize db:migrate
sequelize db:seed:all

If you wish to delete the tables run

sequelize db:migrate:undo:all

How the apps look

Admin app -> whole offer:
app_admin_offer

User app -> whole offer:
app_user_offer

User app -> order creation:
app_user_order

About

Web shop (flower shop) done as part of a University course "Script languages"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published