This is a console-based login system built with Node.js, SQLite, and bcrypt. It includes functionalities for user signup, login, and posting to a forum. There are two user tiers: Basic and Pro. Admins have additional capabilities.
- User Signup and Login
- User Descriptions
- Text Sharing Forum
- Basic users can view the forum
- Pro users can view and post to the forum
- Posts show the username and an
[ADMIN]
tag if posted by an admin
- Admin Capabilities
- View notes
- Reset user passwords
- Edit notes
-
Clone the repository
git clone https://github.com/JWDev60/Console-Forum cd console-forum
-
Install the dependencies
npm install
-
Set up the database
npm run setup
Start the application:
npm start
- 1: Log In
- 2: Sign Up
- 000: Exit
For Basic and Pro Users:
- 1: View Forum
- 000: Log Out
For Pro Users:
- 2: Post to Forum
For Admin Users:
- 3: View Notes
- 4: Reset User Password
- 5: Edit Notes
console-forum/
├── index.js # Main application logic
├── setup.js # Setup script to initialize the database
├── db.js # Database connection handling
├── schema.sql # SQL schema definition
├── package.json # Project dependencies and scripts
├── README.md # Project documentation
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License. See the license file for details.