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:
- Node.js for development and building
- A host such as Amazon Web services or Heroku (any web server, Node.js not required)
- SSL/TLS certificate (https) for secure access (any website should, especially ecommerce)
- A merchant account at Paylike (free)
- Responsive design
- Any currency
- Google Analytics integration (optional)
git clone git@github.com:paylike/webshop-example.git
cd webshop-example
npm install
cp conf.example.json conf.json
npm run dev
Open http://127.0.0.1:8000 in your browser.
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.
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