This is a The Tech Connoisseur Society Clubhouse. It is a place where you can share your thoughts and opinions about the latest tech news. You can also see what other members are thinking about the latest tech news. You can only see the author of a post and the post Date only if you are a member of the society.
- Secure sign-up and login using passport.js
- Members can write anonymous posts with title and content
- Only members can see the author and date of each message
- Option for users to become members by entering a secret passcode
- Option for users to become admin and delete messages
- Display all member messages on the home page
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need to have Node.js and npm (Node Package Manager) installed on your machine. You can download and install them from the official website (https://nodejs.org/en/).
- Clone the repository to your local machine
git clone https://github.com/IlyaEru/The-Tech-Connoisseur-Society.git
- Install NPM packages
npm install
or
yarn install
or (my favorite)
pnpm install
-
Create a .env file in the root directory of the project with the environment variables, like the .env.example file
-
Populate the database with some data
npm run populate
- Run the app
npm start
or for development
npm run devstart
The application will now be running on http://localhost:3000.
- TypeScript - Typed superset of JavaScript
- Express - Web framework for Node.js
- EJS - Embedded JavaScript templating
- MongoDB - NoSQL database
- Mongoose - MongoDB object modeling tool
- Sass - CSS preprocessor
- Jest - JavaScript testing framework
- Mongodb-memory-server - MongoDB in-memory server for testing
To run the tests, run the following command
npm test