This is a small chat UI project (frontend + Node.js + Socket.IO + MySQL) prepared for the Alignbox internship assignment.
alignbox-chat/ ├─ public/ │ ├─ index.html │ ├─ styles.css │ └─ main.js ├─ db/ │ └─ schema.sql ├─ .env.example ├─ server.js ├─ package.json └─ README.md
- Install Node.js and MySQL.
- Create the database:
- Run
mysql -u root -p < db/schema.sql
(replaceroot
and password accordingly)
- Run
- Copy
.env.example
to.env
and set your DB credentials. - Install deps:
npm install
- Start the server:
npm run dev
- Open http://localhost:3000
- Image/attachment upload is intentionally skipped per instructions.
- For GitHub: create a new repo and push these files. Include screenshots (e.g.,
screenshots/
) in the repo before emailing.