Welcome to the PackIt project! PackIt is a Link Shortener application build with mordern tech stack.
Make sure you have the following installed:
- GraalVM: High-performance runtime that provides support for multiple languages including Java and Kotlin.
- Node.js 14+: Javascript runtime environment.
- Docker: A platform to build, share, and run applications in containers.
- Git: Version control system for tracking changes in source code, facilitating collaboration and version management.
Follow the steps below to set up a local environment:
-
Install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
-
Install Node.js using nvm:
nvm install node
-
Install sdkman
curl -s "https://get.sdkman.io" | bash
-
Install GraaLVM and Gradle using sdkman:
sdk install java 22.3.r17-grl sdk use java 22.3.r17-grl sdk install gradle
To run the PackIt project locally, follow these steps:
- Firstly, clone the repository to your local machine:
git clone https://github.com/Motouom/PackIt.git cd PackIt
Navigate to the backend
directory and set up the Spring Boot application:
-
Navigate to the backend directory:
cd packit-backend
-
Build the project with Gradle:
./gradlew build
-
Clean the build environment:
gradle clean
-
Run the application:
./gradlew bootrun
-
Navigate to the frontend repository:
cd ../PackIt-frontend
-
Install the dependencies:
npm install
-
Build the frontend assets for production:
npm run build
-
Start the development server:
npm run dev
-
Build the docker image:
docker-compose build
-
Start the Services:
docker-compose up
-
Access the application:
- Backend API:
http://localhost:8080
- Frontend:
http://localhost:3000
hello
- Backend API: