/log-my-day

Primary LanguageTypeScript

Log My Day

A travel diary mobile app made with Ionic and Angular.

Context

Log My Day is mobile webapp made in the DevMobile course at HEIG-VD.

Content

The app allows to :

  • Create a trip
  • Create multiple places with picture and coordinates (from the device)
  • Show places in an interactive map for each trip
  • List and search trips

HTTP API backend

The app backend is based on the travel-log API and made with Node.js et Express.

Mobile application frontend

The app frontend is made with Angular and Ionic frameworks, to combine web and native mobile functionnalities. The result can be used as a web app as well as a native mobile application.

Local Setup

  1. Prerequisite
  2. Clone the repo
  3. Install dependencies
  4. Create environnement file
  5. Start the server

Prerequisite

First, install Node.js

Then Angular

  npm install -g @angular/cli

And finally Ionic

  npm install -g @ionic/cli

Clone the repo

  git clone https://github.com/Smettraux/travel-log.git

Install dependencies

  npm install

Create environnement file

In the project, go to your src/environments/ directory.

Create environment.ts and paste the environment.sample.ts content inside (with your own urls).

Start the server

  ionic serve

How to use

Authentification

When you use the application for the first time, you will be taken to the login page. On this page you will be able to enter your username and password and then press the login button, unless you do not have an account yet.

login

In this case, you can click on "Register Page" at the bottom of the page to go to the registration form.

register

To log out, you can click on the icon at the top left of the travel list page.

Trip management

To create a trip, you must first be logged in, and then be on the page where the trips are displayed (you automatically arrive on this page when you log in).

list

Then, by pressing the + icon at the top right of the screen, you will arrive at the form for adding a trip. On this form you will need to enter a title and description for the trip.

addTrip

Once a trip has been added, you can edit or delete it by dragging it to the side. Both options will appear, and you can click on the one you want. You can also click on it to display its map with the different locations that make it up.

editTrip

Adding a place

To add a place to your trip, first click on it in the list to display its details with the map. On this new page, you can press the + icon at the top right of the screen.

addPlaces

Once on the add place form, you can fill it in with the name of the place, its description, authorise the application to take your coordinates (to then display the place on the map) and take a photo. Your place will then be displayed on the trip map, and by clicking on it you will be able to see its name, description and photo.

places

Search trips

You may create a number of trips, and the list will start to get very long. In this case, it is more interesting to use the search bar at the top of the page to find the right one quickly. The search will be performed on all the properties of the trip.

search