This is Junk Twitter. Like Twitter but Junk. Create your Profile today and start tweeting.
- User authentication with bcrypt for secure password hashing.
- Session management using express-session and cookie-parser for handling user sessions.
- Integration with MySQL database using Sequelize ORM for data storage and manipulation.
- Implementation of CRUD operations (Create, Read, Update, Delete) for managing user data.
- Templating engine integration with express-handlebars for rendering dynamic views.
- Environment variable configuration with dotenv for managing sensitive data.
- Optional database seeding functionality for populating initial data.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have met the following requirements:
- Node.js installed on your local machine. You can download and install Node.js from nodejs.org.
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd user-list -
Install dependencies using npm:
npm install
-
Create a .env file in the root directory of the project.
-
Add the following environment variables to the .env file:
MONGODB_URI=your_mongodb_connection_string SESSION_SECRET=your_session_secretReplace
your_mongodb_connection_stringwith the connection string for your MongoDB instance. -
To start the application, run the following command:
npm start
-
If you need to populate initial data into your database, you can run the following command:
npm run seed
- Navigate to the sign-up page by clicking on the "Sign Up" link.
- Fill out the required fields, including username, email, and password.
- Click the "Sign Up" button to create your account.
- Navigate to the log-in page by clicking on the "Log In" link.
- Enter your registered email and password.
- Click the "Log In" button to access your account.
- Once logged in, you will be redirected to your profile page.
- Here, you can view your profile information, including your username and email.
- On the dashboard or home page, you'll find a text input area labeled "Compose Tweet."
- Type your message in the text input area.
- Click the "Tweet" button to post your message.
- On the dashboard or home page, you'll see a feed of tweets from users you follow.
- Scroll through the feed to view tweets from other users.
- To log out of your account, click on the "Log Out" link.
- You will be redirected to the log-in page.
- bcrypt v5.0.0
- dotenv v8.2.0
- express v4.17.1
- express-handlebars v5.2.0
- mongoose v7
- express-session v1.17.2
- cookie-parser v1.4.5
For any support-related queries, please email us at support@example.com.
We welcome contributions to Junk Twitter! Please consult our contributing guidelines for more details on how to participate.
This project is licensed under the GNU General Public License. See the LICENSE file for more details.
For the live version of the project, please visit: Junk Twitter.