🔒 Welcome to Secrets Web App, where anonymity meets connection! Discover a sanctuary for sharing anonymous secrets, powered by Node.js, Express, MongoDB, and EJS. Join a community built on trust and confidentiality, exploring the power of shared thoughts in a seamless and secure environment. Dive in now! 🌟
-
User Registration:
- Sign up with a valid email and password to create your account.
-
User Login:
- Existing users can log in securely with their credentials.
-
Submit Your Secrets:
- Share your thoughts anonymously by submitting secrets.
-
View Your Secrets:
- After logging in, effortlessly access your latest secret along with its creation date.
-
Dark Mode:
- Enhance your experience with a sleek and user-friendly dark mode.
-
CSS Styling:
- Elevate the visual appeal with carefully crafted CSS styles for the frontend.
-
EJS Partials:
- Optimize code organization and reusability using EJS partials in the views.
Before getting started, make sure you have the following installed:
- Node.js
- MongoDB Atlas account (for the remote database)
- npm (Node Package Manager)
-
git clone <https://github.com/csgaikwad/Secrets-Web.git> cd Secrets-web
-
npm install
-
- Create a MongoDB Atlas account.
- Replace the connection string in app.js with your MongoDB Atlas connection string.
-
node app.js or nodemon app.js
The application will be accessible at http://localhost:3000.
- Open your browser and go to http://localhost:3000.
- Register a new account or login if you already have one.
- Submit your secrets.
- View your latest secret on the home page.
public
: Contains static files (CSS styles).views
: Contains EJS templates and partials.app.js
: Main application file.
- Express
- Mongoose
- Body-parser
- EJS The application will be accessible at http://localhost:3000.
- Make sure to keep sensitive information like database credentials secure.
- Customize the application further based on your requirements.
Feel free to contribute to the project by opening issues or submitting pull requests. 🚀