GithubHelp home page GithubHelp logo

react-node-mern-hotel-booking-app's Introduction

Generat NodeJs MongoDB API with Full Authentication in seconds ๐Ÿธ

  • Ready to use API with login and register system
  • Includes forgot password and reset password feature
  • Folder structure includig routes and controllers

Install Globally

sudo npm i -g kaloraat

Create project

mkdir server
cd server
kaloraat-make-auth
Running project
  • Update config.js with real mongodb connection uri and sendgrid api keys (for sending email)
  • Get inside your project and run npm install
  • Then run npm start to start your node server/API with full authentication
  • Visit http://localhost:8000/api to check your server/API running
Generate route and controller file

kaloraat-make-route

Generate model

kaloraat-make-model

react-node-mern-hotel-booking-app's People

Contributors

kaloraat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-node-mern-hotel-booking-app's Issues

Not able to do express onboarding

While creating account link. it is showing that the express onboarding is not available in india. I tried by passing country properties as US but its still not working.

`if (!user.stripeAccountID) {
const account = await stripe.accounts.create({
type: "express",
country: 'US'
})
console.log(account);
user.stripeAccountID = account.id;
user.save();
}
console.log(user);
let accountLink = await stripe.accountLinks.create({
account: user.stripeAccountID,
refresh_url: process.env.REDIRECT_URL,
return_url: process.env.REDIRECT_URL,
type: 'account_onboarding'
})

    accountLink = Object.assign(accountLink, {
        "stripeUser[email]": user.email
    })

    console.log(accountLink);`

I am using this.

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.