Coder Social home page Coder Social logo

osc2node's Introduction

Fork on osCommerce v2.3.4 running on nodejs

The shop is a stripped down fork of oscommerce Some slowing components are replaced by other means:

  • Time logging is done by the request handler
  • Logging of visitors has to be done with log files of proxy webserver
  • Visitors do not get a session nor log entry
  • social functions are removed completely
  • newsletter is removed completely
  • download is removed
  • transferred bytes have to retrieved by proxy

THIS IS NOT INTENDED FOR PRODUCTION !!!

  • no accounts
  • no payments
  • no shipping

INSTALL PACKAGES

sudo apt-get install nodejs npm
sudo ln -s /usr/bin/nodejs /usr/local/bin/node # for old npm packages

PREPARE DATABASE

sudo mysqladmin --defaults-file=/etc/mysql/debian.cnf create osc
sudo mysql --defaults-file=/etc/mysql/debian.cnf -e "grant all privileges on osc.* to 'oscuser'@'localhost' identified by 'MYPASSWORD' with GRANT OPTION;"
sudo mysql --defaults-file=/etc/mysql/debian.cnf osc < install/oscommerce.sql 

check database and password in configure.js

RUN EXPERIMENT

git clone https://github.com/micha-p/oscommerce2nodejs.git
cd oscommerce2nodejs/catalog
npm install image-size mime  mysql-libmysqlclient phpjs
nodejs SERVER.JS

TODO

  • collect some source files into modules or classes invoked once at server start
  • change database access to asynchronous style
  • check global variables

osc2node's People

Contributors

acidvertigo avatar anthonyjhicks avatar bodi000 avatar foxp2 avatar gburton avatar haraldpdl avatar janz avatar markkevans avatar nickw108 avatar octopusinvitro avatar scchristie avatar scottcwilson avatar shadow-lord avatar tgely avatar

Watchers

 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.