Hey there! I'm a Computer Engineering student, currently living in Portugal. Building new things is what I truly enjoy in life. Join me as I explore the exciting world of technology and innovation!

Android App in Kotlin with a Django RestAPI

Android App in Kotlin with a Django RestAPI

This project consists of a Android Travel Management App with a Django RestAPI.

Api Local Setup (Opcional)

Prerequisites

  • Python 3.x
  • PostgreSQL
  • Git

Clone the repository

Set up virtual environment

  • python3 -m venv venv
  • ./venv/scripts/activate (On Windows)
  • pip install -r requirements.txt

Set up PostgreSQL database

  • Ensure PostgreSQL is installed and running.
  • Create a new PostgreSQL database named travelapi.

Configure the database settings in settings.py of Django project

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'travelapi',
        'USER': 'postgres',
        'PASSWORD': 'your_password',  # Replace with your actual user password
        'HOST': 'localhost',
        'PORT': '5432',
    }
}

Apply database migrations and run server

  • python project/manage.py makemigrations
  • python project/manage.py migrate
  • python project/manage.py runserver

Android App Setup

  • Open the app project in Android Studio and build and run the application with the Android Emulator. In the folder dependecyinjection, has a class AppModule, change the ip address from the online api to your local api.

App Screenshots

Download Link

https://github.com/tiagooliveiragithub/ipvc-cm-project