This project is a mobile app that allows users to make flight reservations.
- Signup/Login Screen
- Clone this repo.
git clone https://github.com/bedre7/sky-booking.git
- Backend Setup
- Navigate to the
backend
directory - Install the dependencies
npm install
- Create a
.env
file and add the following environment variables
DATABASE_URL="postgresql://<username>:<password>@<host>:<port>/<database-name>?schema=public" JWT_ACCESS_TOKEN_SECRET="<your-access-token-secret-key>" JWT_ACCESS_TOKEN_EXPIRES_IN="30m" JWT_REFRESH_TOKEN_SECRET="<your-refresh-token-secret-key>" JWT_REFRESH_TOKEN_EXPIRES_IN="1d"
- Start the server
npm run start:dev
- Navigate to the
- Mobile App Setup
- Navigate to the
mobile
directory - Install the dependencies
npm install
- Create a
.env
file and add the following environment variables
LOCAL_API_URL="http://10.0.2.2:3000"
- Start the server
npm start
- Navigate to the