main
|
Last change
on this file since 700e2f9 was 700e2f9, checked in by 186079 <matej.milevski@…>, 5 days ago |
|
Init
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Rev | Line | |
|---|
| [700e2f9] | 1 | # iCare
|
|---|
| 2 |
|
|---|
| 3 | ## Project Setup
|
|---|
| 4 |
|
|---|
| 5 | ### Backend Setup
|
|---|
| 6 |
|
|---|
| 7 | #### Prerequisites
|
|---|
| 8 | - Java 25
|
|---|
| 9 | - PostgreSQL database
|
|---|
| 10 | - Gradle (or use the included Gradle wrapper)
|
|---|
| 11 |
|
|---|
| 12 | #### Environment Configuration
|
|---|
| 13 |
|
|---|
| 14 | Copy the `.env.example` file to `.env` and update the values accordingly.
|
|---|
| 15 |
|
|---|
| 16 | #### Installation & Running
|
|---|
| 17 |
|
|---|
| 18 | 1. Navigate to the backend directory:
|
|---|
| 19 | ```bash
|
|---|
| 20 | cd backend
|
|---|
| 21 | ```
|
|---|
| 22 |
|
|---|
| 23 | 2. Build the project:
|
|---|
| 24 | ```bash
|
|---|
| 25 | ./gradlew build
|
|---|
| 26 | ```
|
|---|
| 27 | Or on Windows:
|
|---|
| 28 | ```bash
|
|---|
| 29 | gradlew.bat build
|
|---|
| 30 | ```
|
|---|
| 31 |
|
|---|
| 32 | 3. Run the application:
|
|---|
| 33 | ```bash
|
|---|
| 34 | ./gradlew bootRun
|
|---|
| 35 | ```
|
|---|
| 36 | Or on Windows:
|
|---|
| 37 | ```bash
|
|---|
| 38 | gradlew.bat bootRun
|
|---|
| 39 | ```
|
|---|
| 40 |
|
|---|
| 41 | The backend server will start on `http://localhost:8080`
|
|---|
| 42 |
|
|---|
| 43 | ---
|
|---|
| 44 |
|
|---|
| 45 | ### Frontend Setup
|
|---|
| 46 |
|
|---|
| 47 | #### Prerequisites
|
|---|
| 48 | - Node.js (recommended with [bun](https://bun.sh/))
|
|---|
| 49 |
|
|---|
| 50 | #### Installation & Running
|
|---|
| 51 |
|
|---|
| 52 | 1. Navigate to the frontend directory:
|
|---|
| 53 | ```bash
|
|---|
| 54 | cd frontend
|
|---|
| 55 | ```
|
|---|
| 56 |
|
|---|
| 57 | 2. Install dependencies:
|
|---|
| 58 | ```bash
|
|---|
| 59 | bun install
|
|---|
| 60 | ```
|
|---|
| 61 | Or with npm:
|
|---|
| 62 | ```bash
|
|---|
| 63 | npm install
|
|---|
| 64 | ```
|
|---|
| 65 |
|
|---|
| 66 | 3. Start the development server:
|
|---|
| 67 | ```bash
|
|---|
| 68 | bun start
|
|---|
| 69 | ```
|
|---|
| 70 | Or with npm:
|
|---|
| 71 | ```bash
|
|---|
| 72 | npm start
|
|---|
| 73 | ```
|
|---|
| 74 |
|
|---|
| 75 | The frontend will start on `http://localhost:3000`
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.