Skip to content

paylike/webshop-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple static webshop

This is meant to get you up and running with a webshop as fast as possible and with minimal or no costs at all.

  • No backend
  • Compiles to static HTML, CSS and JavaScript
  • Runs with any hosting
  • Simple, unobtrusive and easy to get started

Instead of its own backend, the webshop relies on the Paylike dashboard for handling transactions.

Prerequisites:

Features

  • Responsive design
  • Any currency
  • Google Analytics integration (optional)

Install

git clone git@github.com:paylike/webshop-example.git
cd webshop-example
npm install
cp conf.example.json conf.json

Develop

npm run dev

Open http://127.0.0.1:8000 in your browser.

Deploy to static host (e.g. Amazon S3)

Adjust conf.json (see conf.example.json).

npm run build

Copy the content of the /dist folder to your web server (e.g. an Amazon (AWS) S3 bucket).

If your using a VPS or a dedicated server with Nginx, you need a configuration file along the lines of nginx.sample.conf.

Deploy server

Adjust conf.json (see conf.example.json).

With Heroku and similar services, this should work out-of-the-box by pushing this repository.

npm start