This is the server-side of the project "My Payments".
- Clone this project;
- Create file
config.ts
fromconfig/config.sample.ts
in the same folder; - Before configuration
config.ts
file you have to create developer accounts at Google, Facebook and Stripe for using Google, Facebook authentication and making payments by Stripe; - Configure
config.ts
like in the sampleconfig/config.sample.ts
; - Create a schema of the database (in MySQL) that should be called like in the filed
config.database.schema
; - Run
npm install
to install all libraries; - Start project
npm start
ornpm run watch
to checking changes.
- Node.js + NestJS (TypeScript);
- MySQL;
- Sequelize;
- Google OAuth2 (server-side);
- Facebook OAuth (server-side);
- Stripe (server-side);
- jsonwebtoken;
- Nodemon.
Note:
- Before using Google OAuth2 you have to configure your Google dev account;
- For making subscription you have to create Products and add plans for each products in your Stripe account.