A social media application to post, view tweets, follow others, and engage in real-time chat with other users.
The requirements of running our application: In terms of the software requirements, you need react.js for frontend interface display, express.js for backend server hosting, and MongoDB for database connections and access. There are no worthy-to-mention hardware requirements, just use any modern personal computer or laptop.
- Download Node.js and Git
- Open the terminal and go to the directory where you want to install the project.
- Type
git clone https://github.com/Gavin-OP/CSCI3100-ChatU.git
in the terminal.
- Open the terminal under the project folder
./CSCI3100-ChatU/
.
cd frontend
: Go to the frontend folder.npm install
: Install all the dependencies.npm start
: Start the frontend.- Go to the web browser, and access the web app in localhost port 3000: http://localhost:3000/
Note: Frontend is connected to the backend by setting the proxy in the file
./frontend/package.json
with "http://localhost:5555". If presented in a public IP, this proxy link needs to be updated to {public IP}
cd backend
: Go to the backend folder.npm install
: Install all dependencies.npx nodemon server.js
: Start the backend server, connect to mongoDB- Go to the web browser, the server can be accessed in localhost port 5000: http://localhost:5555/
Ctrl
+c
: Shutdown backend
-
Change Navbar.
- Navbar for login, click logo is the home page, click icon is login
- Navbar for user, Navbar is slightly different in the toggle list for the personal page and setting.
-
admin user ban
-
Change tweet card and retweet card CSS background color to be consistent with login and signup.
JavaScript 图片压缩参考
Lazy load Reference
Git Book
css reference
PRs and issues gladly accepted!