Giter Club home page Giter Club logo

photoalbum's Introduction

Photo Album

GitHub last commit GitHub GitHub repo size

NodeJs ve ExpressJs kullanarak API üzerinden album ve fotograf goruntuleme sitesi.

Uygulamayı açmak icin :

Görünüm

Login Ekranı

Example screenshot

Anasayfa Ekranı

Example screenshot

Gerekli Araçlar

  • NodeJs ve NPM
  • Express

Kullanılan Eklentiler

  • Nunjucks
  • Gulp
  • Gulp-csso
  • Gulp-less
  • Gulp-minify
  • Gulp-watch
  • Body Parser
  • Passport

Başlangıç

package.json dosyası

Gerekli olan tüm eklentiler package.json dosyamızda mevcut. Direk bu kodu projenin oluşturulacağı klasörde package.json dosyasının içine yapıştırabilirsiniz.

{
    "name": "challengeproj",
    "version": "1.0.0",
    "description": "",
    "main": "app.js",
    "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1",
        "server": "nodemon app.js -e js,njk"
    },
    "engines": {
        "node": ">= v10.16.0",
        "npm": ">= 6.9.0"
    },
    "repository": {
        "type": "git",
        "url": "https://github.com/hasanaydins/PhotoAlbum.git"
    },
    "bugs": "https://github.com/hasanaydins/PhotoAlbum/issues",
    "author": "hasan",
    "license": "ISC",
    "dependencies": {
        "body-parser": "^1.19.0",
        "express": "^4.17.1",
        "nunjucks": "^3.2.0"
    },
    "devDependencies": {
        "gulp": "^4.0.2",
        "gulp-csso": "*",
        "gulp-less": "*",
        "gulp-minify": "^3.1.0",
        "nodemon": "^1.19.1",
        "passport": "^0.4.0"
    }
}

npm install diyip bu modulleri yukleyeyebilirsiniz.

İşlem sonundaki kod haritamız:

Example screenshot

Arayüz

Html templateleri için views klasoru altında partials , login ve albums sayfalarımızı olusturuyoruz.

API Bağlantısı

static adında klasör olusturup sayfa tıklanmalarında apiye ulasmasıyla album ve fotografları get etmemiz için gerekli app.js dosyamızı olusturmamız gerekiyor.

Dosyalarımızı sıkıştırma ve tek parça haline getirme

Gulp.js ile Js ve Less dosyalarımızı minify etme

Js dosyalarımızı tek dosya haline giterelim ve less dosyalarımızı css dosyasına cevirip minify edecegiz. Daha sonra watch ile izleyecegiz.

Dosyaları sıkıstırmak icin ise konsola default olarak da tanımladıgımız gulpkomutunu calıstıyoruz ve dist klasoru icinde minify dosyalar olusturuluyor.

js ve css dosyalarımızı njk dosyalarımızın icinde tanımlamayı unutmayın.

Uygulamamız hazır 😜

Açmak için:


Created by Hasan Aydın ©

photoalbum's People

Contributors

hasanaydins avatar usameavci avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.