Tweetr is a simple, single-page Twitter clone.
This repository is the starter code for the project: Students will fork and clone this repository, then build upon it to practice their HTML, CSS, SCSS, JS, jQuery and AJAX front-end skills, and their Node, Express and MongoDB back-end skills.
When a user is logged-in, the user can compose a new tweet, like or unlike a tweet posted by other tweeter. When a user clicks on their avatar, a drop-down menu shows more options.
When a user is logged out, the user can only read tweets, register or login.
Register and login form uses modal view on the same page.
On registration, the server does error checkings for duplicated email and username, gaurantees the uniqueness.
On login, user can login use either the email or the username they registered with. The server then checks if the pair matches with the database.
Responsive deisgn, allows different looks on different sizes of devices.
-
Define MONGODB_URL in .env file to indicate the url for the mongoDB database that you are using. e.g. MONGODB = mongodb://localhost:27017/tweeter
-
Run one of the following command in the terminal to start the server:
- npm start
- npm run local
- Open browser, and go to http://localhost:8080/
- Express
- Node 5.10.x or above
- bcypt
- body-parser
- cookie-session
- dotenv
- md5
- mongodb
- morgan
- node-sass
- node-sass-middleware