Giter Site home page Giter Site logo

klarna-checkout-boilerplate's Introduction

klarna-checkout-boilerplate

How to install

  1. Fork this git repo and then clone your repo with git clone.
  2. Run cd klarna-checkout-boilerplate in the terminal.
  3. Run npm i in the terminal.
  4. Create a Klarna Playground Account + Klarna Playground API Key that you will use below:
  5. Create an .env file that looks like this:
PORT=3000
PUBLIC_KEY=PK47125_962053b37cdb
SECRET_KEY=YjKEnheUIegnZR2Q
  1. Run sudo npm install -g nodemon in the terminal.
  2. Run npm run dev in the terminal.
  3. The application should now be running on http://localhost:3000

App Architecture

OBS: .env file is needed to run project, and is not supplied through the git clone command.

.env                # Environment variables, supplied by @devmattb.
.app.yaml           # Google Cloud deploy container settings.
public              # All static and public assets, such as images and videos.
src
│   start.js        # App start file
│   app.js          # App entry point
└───api             # Express route controllers for all the endpoints of the app
└───config          # Configuration for environment variables
└───loaders         # Splits up the startup process into modules
└───models          # Database models
└───services        # All the business logic is here

Keep in mind that we often group files in to the following categories:

any_folder
└───both          # Both client and server-needed files
└───client        # Only client-side needed files
└───server        # Only server-side files

klarna-checkout-boilerplate's People

Contributors

dmattbergstrom2 avatar 2lambda123 avatar dependabot[bot] avatar stacksharebot avatar penify-dev[bot] 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.