This application is completely free. We encrypt your passwords and all of your notes. Our main purpose is provide a completely secure user experience
git clone https://github.com/TarikSogukpinar/note.git
Node JS
cd note
cd server
npm install
npm start
React
cd note
cd client
npm install
npm start
- Login / Register
- Create Note (end to end encryption)
- Update Note (end to end encryption)
- Delete Note
- Delete Account
- Docker Container
- Forgot Password
- Update Password and Email
- Dark Mode
- Language Support (TR - EN)
- Swagger Documentation
- Profile Picture
- Date Time For Notes
- Profile Dashboard
- UI & UX Design
If you have any feedback, please reach out to us at [email protected] & [email protected]
import CryptoJS from "crypto-js";
const AddNote = asyncHandler(async (req, res) => {
const { title, content, category } = sanitize(req.body);
const addNoteValidation = await noteValidationSchema.validateAsync(
sanitize(req.body)
);
if (addNoteValidation) {
const newNote = new Note({
title: CryptoJS.AES.encrypt(
title,
process.env.CRYPTO_SECRET_KEY
).toString(),
content: CryptoJS.AES.encrypt(
content,
process.env.CRYPTO_SECRET_KEY
).toString(),
category: CryptoJS.AES.encrypt(
category,
process.env.CRYPTO_SECRET_KEY
).toString(),
user_id: req.user.id
});
await newNote.save();
res.status(201).json({ message: "Note created" });
} else {
return res.status(500).json({ message: error.message });
}
});