REST API which supports a CRUD operations to encrypt and decrypt notes
Tech stack:
-
TypeScript
-
NestJS
-
MongoDB
-
Jest Testing Framework (in progress)
-
Encryption type : aes-256-gcm
-
Application is packaged inside docker and can be deployed using docker-compose
-
Sample GitHub Actions
-
E2E Testing using Postman API platform
There is a docker-compose.yml
file for starting Docker.
docker-compose up
After running the sample, you can stop the Docker container with
docker-compose down
Import "/secret-notes-api/test/SecretNotes-postman-collection.json" in postman
Refer Published documentation
#installation
$ pnpm install
Go to app.module.ts and update 'mongo' to 'localhost'
MongooseModule.forRoot('mongodb://localhost:27017/secretnote'),
#start mongodb
docker-compose up
# development
$ pnpm run start OR nest start
# watch mode
$ pnpm run start:dev OR nest start --watch
# production mode
$ pnpm run start:prod
Using Jest (in progress)
# unit tests
$ jest
Check out a few resources that may come in handy when working with NestJS: