Skip to content

Commit

Permalink
Rewrite frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
AjdiNNN committed Jun 13, 2023
1 parent be263ff commit 98c62d7
Show file tree
Hide file tree
Showing 2,325 changed files with 78,665 additions and 312,976 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

Binary file removed assets/badroom.webp
Binary file not shown.
Binary file removed assets/bike.jpg
Binary file not shown.
Binary file removed assets/case.jpg
Binary file not shown.
Binary file removed assets/laptop.jpg
Binary file not shown.
Binary file removed assets/notebook.webp
Binary file not shown.
Binary file removed assets/ring.jpg
Binary file not shown.
Binary file removed assets/rings.webp
Binary file not shown.
Binary file removed assets/vespa.jpg
Binary file not shown.
Binary file removed assets/watch.webp
Binary file not shown.
8 changes: 0 additions & 8 deletions auctions-ba.code-workspace

This file was deleted.

158 changes: 158 additions & 0 deletions auctions.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 29, 2022 at 01:44 AM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 8.1.6

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `auctions`
--

-- --------------------------------------------------------

--
-- Table structure for table `bids`
--

CREATE TABLE `bids` (
`id` int(128) NOT NULL,
`amount` int(128) NOT NULL,
`bidder_id` int(128) NOT NULL,
`item_id` int(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `bids`
--

INSERT INTO `bids` (`id`, `amount`, `bidder_id`, `item_id`) VALUES
(38, 1, 14, 17),
(39, 2, 14, 17);

-- --------------------------------------------------------

--
-- Table structure for table `items`
--

CREATE TABLE `items` (
`id` int(128) NOT NULL,
`title` varchar(80) COLLATE utf8_bin NOT NULL,
`description` varchar(255) COLLATE utf8_bin NOT NULL,
`image` varchar(24) COLLATE utf8_bin NOT NULL,
`ending` datetime(2) NOT NULL DEFAULT current_timestamp(2),
`owner_id` int(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `items`
--

INSERT INTO `items` (`id`, `title`, `description`, `image`, `ending`, `owner_id`) VALUES
(17, 'IBU', 'International Burch University - Intro to Web Programming 2022', 'mjv3YZXg7FsSjQ49BIc.png', '2022-07-30 01:45:00.00', 5),
(18, 'Lorem ipsum', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin sed justo libero. Nulla massa massa, facilisis non dictum quis, dictum in odio. Nunc tincidunt fringilla lectus nec consectetur. Etiam vitae eleifend velit, fringilla suscipit nibh massa nunc.', 'wQdbNJe7g7EyQD0q7hy.jpg', '2022-07-29 10:10:00.00', 14);

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
`id` int(128) NOT NULL,
`email` varchar(80) COLLATE utf8_bin NOT NULL,
`firstname` varchar(80) COLLATE utf8_bin NOT NULL,
`secondname` varchar(80) COLLATE utf8_bin NOT NULL,
`username` varchar(80) COLLATE utf8_bin NOT NULL,
`password` varchar(96) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `email`, `firstname`, `secondname`, `username`, `password`) VALUES
(5, '[email protected]', 'ajdin', 'hukic', 'ajdin', '$argon2i$v=19$m=65536,t=4,p=1$NmJuLlFDbDBFdlYyaHlOTg$gshH63RiSQSaHI00hiW4nScu80SnpWkBUARyI+u0V58'),
(14, '[email protected]', 'ajdin', 'hukic', 'ajdiNN', '$argon2i$v=19$m=65536,t=4,p=1$NmJuLlFDbDBFdlYyaHlOTg$gshH63RiSQSaHI00hiW4nScu80SnpWkBUARyI+u0V58');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `bids`
--
ALTER TABLE `bids`
ADD PRIMARY KEY (`id`),
ADD KEY `bidder_id` (`bidder_id`),
ADD KEY `item_id` (`item_id`);

--
-- Indexes for table `items`
--
ALTER TABLE `items`
ADD PRIMARY KEY (`id`),
ADD KEY `owner` (`owner_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `bids`
--
ALTER TABLE `bids`
MODIFY `id` int(128) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT for table `items`
--
ALTER TABLE `items`
MODIFY `id` int(128) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(128) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `bids`
--
ALTER TABLE `bids`
ADD CONSTRAINT `bids_ibfk_1` FOREIGN KEY (`bidder_id`) REFERENCES `users` (`id`),
ADD CONSTRAINT `bids_ibfk_2` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`);

--
-- Constraints for table `items`
--
ALTER TABLE `items`
ADD CONSTRAINT `owner` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`);
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"require": {
"mikecao/flight": "^2.0",
"firebase/php-jwt": "^6.5",
"zircote/swagger-php": "3.*"
}
}
Loading

2 comments on commit 98c62d7

@vercel
Copy link

@vercel vercel bot commented on 98c62d7 Jun 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

auctions-ba-rest – ./rest

auctions-ba-rest.vercel.app
auctions-ba-rest-ajdinnn.vercel.app
auctions-ba-rest-git-main-ajdinnn.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 98c62d7 Jun 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

auctions-ba – ./

auctions-ba-git-main-ajdinnn.vercel.app
auctions-ba.vercel.app
auctions-ba-ajdinnn.vercel.app

Please sign in to comment.