This readme-file describes contents, navigation and necessary versions and dependencies to run Torst on an iOS simulator.
Welcome to Torst, the app that makes tracking your drink sessions easy, fun, and insightful! Whether you're hosting a party, having a pre-party with your friends, or simply enjoying a night out, Torst helps you monitor and manage your blood alcohol level.
The code project is found in src. The project consists of the following
- src/components contains reusable components rendered across different screens
- src/config includes configuration files for the project
- src/context provides context files for state management across the app
- src/navigation manages the navigation between screens and includes various navigation stacks
- src/screens contains the individual screens for the app
- src/styles defines the theme colors and global styles for the app
- src/utilities includes utility functions, such as the logic for calculating BAC levels
This project requires the following dependencies and versions:
- Expo: 51.0.31
- Node: 20.18.0
- React: 18.2.0
- React Native: 0.74.5
- Firebase: 10.14.1
- TypeScript: 10.14.1
For a full list of dependencies, refer to the package.json file.
Follow the steps provided in this guide to install the simulator for running the project.
This project uses Firebase for data handling. First you need to create a new project nad follow these steps to set up the backend service:
- Set up a Cloud Firestore Database with the following collections;
users,drinksandsessions. - Add Firebase Authentification with an Email/Password provider.
- Add a Web App and copy the
firebaseConfiginto the app.json file below theextrasection.
- To install all the dependencies, run
npm install - To launch the Expo development server and run the application, run
npx expo start




