This is notion-like note application backend and Clean Architecture boilerplate with registration, authorization, collaborating, etc. You can create note, add tags to it and filter your notes, add and remove collaborators, customize your profile.
- User registration and authorization by
JWT - User's profile update
- User password change
- Note creation with tags and collaborators
- Note edit
- Receiving notes with pagination, update date sorting, tags filtering
- Adding and removing collaborators
To launch application you need to install
DockerandDocker Composeon your system
- Clone git repository and go to the directory
git clone https://github.com/LCcodder/NodeNotes
cd NodeNotes- Edit environment variables in
docker-compose.yamlas you want - Run
docker compose up --buildDATABASE_HOSTDATABASE_NAMEDATABASE_USERDATABASE_PASSWORDREDIS_CONNECTION_STRING(ex.redis://127.0.0.1:6379/0)JWT_SECRETJWT_EXPIRATION(ex.24h)PORT
- App covered with
Jestunit tests - Coverage
85%
To run all testsheets enter:
npm test
- App covered with e2e tests
100%coverage, over 280 tests
You can find testsheets in tests/e2e/api_v1.postman_collection.json
- Go to the
http://localhost:5050 - Log in with email:
admin@pgadmin.comand password:password - Run
docker ps -a
- Find and copy
postgrescontainer id - Run
docker inspect <copied container id>
- Find
IPAddresswith 172 prefix and copy it - Now add server in
pgAdminand paste copied IP inhostinput - Complete all other inputs
