Node version 10.15.0 or better
Create an account in Stripe
Clone or download example, install the dependencies using:
npm install
Using file /src/config/api_example.js, create a new file /src/config/api.js with your Stripe credentials
module.exports = {
stripe: {
STRIPE_KEY: 'YOUR SECRET KEY HERE'
}
}
To run use npm or nodemon
npm run dev
To change port that application is listening to, access file /src/config/general.js, and modify value of serverPort
module.exports = {
serverPort: 3500,
logdir: "log"
}
From your browser access the URL below
http://localhost:3500/
Utilizando NPM para instalação de pacotes Basic Login System with Node.js, Express, and MySQL Node.js SQLite Tutorial — Connection & CRUD Connecting To SQLite Database Using Node.js How To Set Up Stripe Buy Buttons on Your WordPress Website A SQLite Tutorial with Node.js/ Build a REST API with Node.js and Express.js CRIANDO UM CURRÍCULO COM NODE.JS, EXPRESS E TEMPLATES EJS