GithubHelp home page GithubHelp logo

paradoxanthology's Introduction

Stripe checkout system created with help from: https://www.youtube.com/channel/UCFbNIlppjAuEX4znoulh0Cw

  • Errors shown in console for the checkout are due to there being a more recent version of Stripe available and do not impact performance or functionality
  • Items in the shop page MUST be edited, deleted, and added through the items.json file

To run on localhost

Download Node JS Open CMD and use cd to move to the folder container server.js In this folder type:

npm install

Then type:

npm install --save express ejs express-validator cookie-session bcrypt mysql2

Then type:

npm install bcryptjs nodemailer

Then in CMD, or a terminal in an editor such as VS Code, type:

node server.js

Have XAAMP installed and run Apache & MySql Open localhost in the browser Create a database called: nodejs_login Import the database.sql file in to the nodejs_login database

To have the shop and contact form working on localhost

You will need to create a file called .env in the root project folder which contains server.js The reason for this is that GitHub ignores the .env file as it contains sensitive information that shouldn't be shared. In this file you must provide:

STRIPE_SECRET_KEY=

STRIPE_PUBLIC_KEY=

A stripe key can be obtained by signing up at Stripe Checkout, and a gmail login must also be provided in the .env as:

EMAIL=

PASS=

paradoxanthology's People

Contributors

amber-hb avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

nxthxnn

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.