Skip to content

Business card holder app

Notifications You must be signed in to change notification settings

Rolkarolka/Hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiS-Hello

Business card holder app

Timeline:
17.11 - 1 stage
13.12 - 2 stage
03.01 - 3 stage
24.01 - 4 stage

Server

Run

To run the REST server, you either need to

cd server
gradle bootRun

or straight from the root

server/gradlew -b server/build.gradle.kts bootRun

Available endpoints

Search:
http://127.0.0.1:8080/search?ownername=5
http://127.0.0.1:8080/search?profession=lawyer
http://127.0.0.1:8080/search?id=3

Response Example:

[
  {
    "id": 2,
    "mode": "PUBLIC",
    "path": "test/photo2",
    "category": "lawyer",
    "owner": "5"
  },
  {
    "id": 3,
    "mode": "PUBLIC",
    "path": "test/photo3",
    "category": "lawyer",
    "owner": "5"
  },
  {
    "id": 4,
    "mode": "PUBLIC",
    "path": "test/photo4",
    "category": "cook",
    "owner": "5"
  }
]
User cards:
http://127.0.0.1:8080/{username}/cards

Response Example:

[
  {
    "id": 1,
    "mode": "PRIVATE",
    "path": "test/photo1",
    "category": null,
    "owner": "5"
  },
  {
    "id": 2,
    "mode": "PUBLIC",
    "path": "test/photo2",
    "category": "lawyer",
    "owner": "5"
  },
  {
    "id": 3,
    "mode": "PUBLIC",
    "path": "test/photo3",
    "category": "lawyer",
    "owner": "5"
  },
  {
    "id": 4,
    "mode": "PUBLIC",
    "path": "test/photo4",
    "category": "cook",
    "owner": "5"
  }
]

Mobile app

Prior to running the app, you need to install node.js on your PC. Then, you need to install expo with command

npm install --global expo-cli

Then, go to frontend directory and install all required packages

cd frontend
npm install

Run

To start the development server for the mobile app, you need to

npm start

After that, you can run the app on an android/iOS device emulator or directly on your mobile device using Expo Go app.

Links: