This project is a continuation of an earlier project I started in 2024.
This is version 3, following two previous repositories.
The application consists of:
- Backend: Java with Spring Boot
- Frontend: TypeScript
- Java (Spring Boot)
- TypeScript
- Docker
- MongoDB
- Node.js / npm
Make sure you have the following installed:
- Docker
- Node.js and npm
- An IDE:
- Recommended: IntelliJ IDEA (for backend)
- Alternative: Visual Studio Code
- Basic understanding of:
- Spring Boot
- TypeScript / JavaScript
git clone <your-repo-url>
cd notes_tracker- Navigate to the
backendfolder. - Locate the
.env.examplefile. - Create a new
.envfile in the same directory. - Fill in the required values:
- MongoDB credentials
SPRING_DATA_MONGODB_AUTHENTICATION_DATABASE=adminJWT_SECRET→ generate one here:
https://randomkeygen.com/jwt-secret
- Go to:
backend/src/main/resources - Copy:
example.application.properties - Create:
application.properties - Paste the contents into the new file.
- Navigate to:
backend/src/test/resources - Copy:
example.application-test.properties - Create:
application-test.properties - Update:
- Test database credentials
- CORS origins
docker-compose -f docker-compose-dev.yml up --builddocker-compose -f docker-compose-test.yml up --build- Run the application via IntelliJ or your preferred IDE
- Run tests using Maven or the IDE test runner
- Navigate to the
frontendfolder. - Locate
.env.example. - Create a
.envfile in the same directory. - Fill in the required environment variables.
You should now have both the backend and frontend running locally and ready for development.
- Make sure Docker is running before executing commands.
- Double-check all
.envand configuration files. - If something fails, check:
- Docker logs
- IDE console output
Feel free to fork the project and submit pull requests. Suggestions and improvements are always welcome.
To run the backend through vscode you must setup a launch.json file where you paste your environment variables so that you can run the application.