TMU Connect is a classified advertisements website tailored specifically for TMU students. This platform allows students to post and browse classified ads in various categories, fostering a seamless exchange of items and academic services within the university community.
-
User Authentication
- Secure login and registration system for TMU students.
-
Responsive Design
- Interface seamlessly adapts to both desktop and mobile screens.
-
Classified Ad Categories
- Items Wanted: Students can post ads seeking specific items.
- Items for Sale: Students can post ads selling specific items.
- Academic Services: Section for offerings like tutoring, textbook exchanges, and study groups.
-
Search Functionality
- Efficient search capabilities with filters such as category, price, and location.
-
Ad Posting Interface
- User-friendly interface for posting new ads with text, images, and relevant details.
-
Communication Platform
- Secure system for users to communicate with each other within the website.
-
Admin Dashboard
- For site administrators to manage ads, users, and site content.
-
Mobile Optimization
- Full functionality and enhanced user experience on mobile devices.
- Node.js
- Install Node.js from the official website.
- Verify the installation by running
node -v
andnpm -v
in the terminal.
- MySQL
- Install MySQL from the official website.
Ensure you have all the prerequisites installed before proceeding.
npm install --prefix client
npm install --prefix server
npm run build --prefix client
npm run build --prefix server
- Change directory to the server folder.
cd server
- Copy the
.env.example
file to `.env.cp .env.example .env
- Modify the
.env
file to configure the MySQL database.- Update the
{USER}
and{PASSWORD}
fields with your MySQL username and password.
- Update the
- Deploy the database
npx prisma db push
node server/dist/server.js
docker build -t tmu-connect .
Replace the DATABASE_URL
environment variable with your MySQL database URL.
docker run -d -p 5000:5000 -e DATABASE_URL=mysql://root:password@localhost:3306/TMU-connect tmu-connect
- To run the application in production mode, set the
NODE_ENV
environment variable toproduction
. The default mode for docker isproduction
. - To configure the server port, set the
PORT
environment variable. The default port is5000
. - To enable SSL for the server, set the
SSL
environment variable totrue
. This only enables SSL checks and does not provide SSL certificates.
Ensure you have all the prerequisites installed before proceeding.
npm install --prefix client
npm install --prefix server
- Change directory to the server folder.
cd server
- Copy the
.env.example
file to.env
.cp .env.example .env
- Modify the
.env
file to configure the MySQL database.- Update the
{USER}
and{PASSWORD}
fields with your MySQL username and password.
- Update the
- Deploy the database
npx prisma db push
npm start --prefix server