Skip to content

Headpat-Community/headpat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Headpat app

How to get started:

First of all, you need to install the dependencies. You can do this by running the following command:

pnpm install

Make sure to have an android emulator installed on your machine, like Android Studio or XCode installed on your macOS.

After that, you can start the app, this will run the app in development mode using an android emulator:

pnpm run dev

If you want to use iOS (this will only work on macOS), you can run the following command:

pnpm run ios

Using the API:

Using functions:

const fetchUsers = async () => {
  try {
    const data = await functions.createExecution(
      'user-endpoints',
      '',
      false,
      '/getUsers',
      ExecutionMethod.GET
    )
    setUsers(JSON.parse(data.responseBody))
  } catch (error) {
    console.error(error)
  }
}

Using databases:

const fetchEvents = async () => {
  try {
    const data: EventsType = await database.listDocuments('hp_db', 'events')
    setEvents(data)
  } catch (error) {
    console.error(error)
  }
}

Using environment variables

Please copy .env.example to .env and fill in your data.

Making a production build requires environment variables set in https://expo.dev

Contributors 4

  •  
  •  
  •  
  •  

Languages