Web Development & Deployment Proyect, 3rd Year Computer Science International, TUD (Technological University Dublin).
Swapzy is a web-based application designed to offer second-hand products for sale. The platform allows users to create accounts, upload products and search for products using filters.
-
User Authentication: Secure login and password storage using encryption methods.
-
Product Listings: Users can upload items with images from the web, descriptions, pricing and location.
-
Search and Filters: Search and filtering options to find items quickly.
-
Responsive Design: Optimized for mobile and desktop devices.
-
Text Sanitization: Input fields are sanitized using DOMPurify to prevent XSS attacks.
Swapzy enables users to browse and upload products for sale. Each user has access to their own dashboard to manage their listings, and all items are publicly visible for browsing. The app provides easy navigation, an intuitive interface, and secure authentication.
-
Frontend: HTML, CSS, Javascript.
-
Backend: Node.js with Express.js.
-
Database: PostgreSQL with Sequelize.
-
Password Security: bycrypt encryption for password hashing.
-
Text Sanitization: DOMPurify for cleaning user-generated input.
The project is organized as follows:
swapzy/
├── controller/ # Application logic for handling requests
├── routes/ # API routes
├── middleware/ # Middleware
├── sequelize/
| ├── config/ # Database configuration
| ├── data/ # Database table default data
| ├── migrations/ # Sequelize migrations
| ├── models/ # Sequelize models for database entities
├── view/ # Frontend files (HTML, CSS, JS)
├── utils/ # Utility files
└── app.js # Entry point for the application
-
Node.js installed
-
PostgreSQL installed and running
-
Database initialized with dump file
-
.envfile configured with database credentials
-
Clone the repository:
git clone git@github.com:Eleee28/Web-Project.git cd swapzy -
Install dependencies:
npm install
-
Set up the database:
-
Create a PostgreSQL database.
-
Configure
.envwith the database connection details.
-
-
Run the app:
npm start
-
Open the app in your browser at
http://localhost:8080
This was developed by two students at TUD:



