Code Monkey home page Code Monkey logo

node-shopping-cart's Introduction

Neler yaptık?

  • Ürün Ekleme ve Düzeltme işlemleri.
  • Ürüne Fotoğraf Eklemek ve Düzeltme işlemi sırasında eski fotoğrafı silmek yenisini yüklemek.
  • Ürünü sepete atmak ve sepetteki ürünleri görüntülemek.
  • Üye olmak ve giriş yapmak.
  • Güvenlik kontrolleri.
  • Sepetimizi cookie ve session üzerinde tutmak.

Hangi bileşen ne amaçla kullanıldı?

  • Tema işlemleri için "bootstrap v4" tercih edildi.
  • "jquery-3.2.1" kütüphanesi tercih edildi ve bu sayede postback olmadan bazı işlemleri yaptık.
  • Yapı olara "express" ve eklentileri tercih edildi.
  • View Engine olarak "handlebars" ve eklentileri tercih edildi. Biz handlebars-helpers için özel fonskiyonlar yazdık bunları görmenizi ve nasıl kullandığımızı incelemenizi isteriz.
  • Veritabanı olarak "mongodb" tercih edili ve "mongoose" ile desteklendi.
  • Güvenlik işlemleri için "passport" ve "passport-local" yanı sıra csurf ile desteklendi.
  • Fotoğraf yükleme işlemleri için "multer" tercih edildi.
  • Sepet oluşturma işlemleri sırasında "session", "connect-mongo" ve "cookie" kullanıldı.

Run Locally on Your Machine

You need Node, NPM and MongoDB properly installed.

Clone this repository

    git clone https://github.com/baymyo/node-shopping-cart.git

Setup the environment variables replacing with your mongodb port, usually is 27017.

    export MONGO_DB_URI=mongodb://localhost:<MONGODB-PORT>/shopping

Install dependencies

    npm install

With your mongod service running, this will populate shopping database

    node seed/product-seeder.js 

This will start dev server at http://localhost:3000 with Nodemon.

    npm run dev

Tests

    npm test

Technologies

Back-end

NodeJS, Express, MongoDB, Mongoose.

Fron-end

Handlebars and Bootstrap.


All Plugins

"Node JS, jquery, express, express-session, express-validator, express-handlebars (helpers), mongoDB (mongoose), connect-mongo, cookie, passport (local), csurf, multer"

node-shopping-cart's People

Contributors

baymyo avatar

Watchers

 avatar  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.