This guide covers the setup process for both the backend and mobile parts of the project.
- Copy the
.env.example
file in thebackend
directory to a new file named.env
. - Fill in the required environment variables in the
.env
file. like your database URL, JWT secret, etc.
- Navigate to the
backend
directory. - Install the dependencies by running:
npm install
- Push the database schema by running:
npx prisma db push
- Generate Prisma client by running:
npx prisma generate
- Start the backend server by running:
npm run dev
- The backend server should now be running on
http://localhost:8000
.
Open the mobile/lib/axios.config.js
file.
Change the IP_ADDRESS
variable to your local IP address. This is necessary for the mobile app to communicate with the backend.
There are no specific environment variables to set up for the mobile part, but ensure that the backend's IP address
is correctly set as mentioned above.
- Navigate to the
mobile
directory. - Install the dependencies by running:
npm install
- Start the mobile app by running:
npx expo start
Happy coding! 🚀