CyberV / photo-gallery-capacitor-ng

Photo Gallery Tutorial: Ionic Angular and Capacitor

Home Page:https://ionicframework.com/docs/angular/your-first-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SS Initial Repo

Initial Repository for SSewa App.

How It Works

After the user navigates to Tab 2 (Photos), they can tap/click on the camera button to open up the device's camera. After taking or selecting a photo, it's stored permanently into the device's filesystem. When the user reopens the app at a later time, the photo images are loaded from the filesystem and displayed again in the gallery. The user can tap on a photo to be presented with the option to remove the photo.

Feature Overview

Project Structure

  • Tab2 (Photos) (src/app/tab2/): Photo Gallery UI and basic logic.
  • PhotoService (src/app/services/photo.service.ts): Logic encapsulating Capacitor APIs, including Camera, Filesystem, and Storage.
  • Backend Directory (backend/): Node + Express Backend with User routes exposed at /api/user/.
  • Data extracted from MongoDB Atlas instance using Mongoose.

How to Run

Note: It's highly recommended to follow along with the tutorial guide, which goes into more depth, but this is the fastest way to run the app.

For FrontEnd (/) 0) Install Ionic if needed: npm install -g @ionic/cli.

  1. Clone this repository.
  2. In a terminal, change directory into the repo: cd photo-gallery-capacitor-ng.
  3. Install all packages: npm install.
  4. Run on the web: ionic serve.
  5. Run on iOS or Android: See here.

For Backend (/backend/) 0) Install all packages: npm install.

  1. Install Nodemon: npm -i -g nodemon
  2. Run server.js in backend : nodemon server.js

Note: You will need to whitelist your IP in MongoDB Atlas Instance. Contact author for creds

Contribution Guidelines

  1. All commits to be pushed in contributor's feature branch (to be forked from develop branch).
  2. Branches to be merged to develop branch via PR's. No PR to be merged without Revier's approval.
  3. Commits to follow pattern: [COMMIT_TYPE]: [TICKED_ID] Description *[COMMIT_TYPE] = SETUP / FIX / MERGE / IMPROV

About

Photo Gallery Tutorial: Ionic Angular and Capacitor

https://ionicframework.com/docs/angular/your-first-app


Languages

Language:TypeScript 50.3%Language:CSS 18.4%Language:JavaScript 12.0%Language:Swift 8.2%Language:HTML 6.3%Language:Java 3.6%Language:Ruby 1.2%