First node app

Requirements

Node version 10.15.0 or better

NodeJS

Create an account in Stripe

Stripe

Installation

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'
  }
}

Running

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"
}

Using

From your browser access the URL below

http://localhost:3500/

Useful links

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