jurkian/react-bank
关于
Banking app built in React, Redux, TypeScript, Node, Strapi
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文🏦 react-bank
Banking app built in TypeScript, React, Redux and Node. There is also an option to use Strapi, but you would have to adjust the Front End to use it.
Demo user (automatically created when you start the app):
Login: [email protected]
Password: admin123
(Please note this app needs to be adjusted to use the new Strapi Back End. Also, the TypeScript implementation is in early stage and covers only Front End at the moment.)
What's inside?
- Login/register
- Accounts
- Transactions + new transaction
- Credit/debit cards + change PIN/limits
- Internal messages
- User profile incl. data change
- Help form
- Income change chart
- Currency stats
- Form validation, async routing
- Dummy data generator

Some details
Inspired by Daily UI 30 PSD files.
Moved to HTML5/CSS3 using Avocode (link to HTML/CSS repo).
Technologies:
WEB:
- TypeScript
- React
- Redux
- React Router
- Webpack
- Sass
- Bootstrap 4
- JWT tokens
- recharts
- react-dates
API:
- Node, Express, Strapi
- JWT tokens
- Database: MongoDB, Mongoose (old API), MySQL or MariaDB (new API on Strapi)
- Fixer.io for currency rates
How to use it?
Installation and running (old API, Node/Express)
- Install Node.js and MongoDB (MongoDB Compass may be useful as well, to work on the database)
- Create database called
react-bank-apior use any other name, but then update it in theold-api/.envconfig file - Install all dependencies both in
webandold-apifolder by typingnpm installinside each of them - Run API: type
npm run start-devinold-apifolder - Run web: type
npm startinwebfolder
Installation and running (new API, Node/Strapi)
- Install Node.js and MariaDB
- Create database called
react-bank-apior use any other name, but then update it in the.envconfig file - Install all dependencies both in
weband root folder by typingnpm installinside each of them - Run API: type
npm run developin root folder or (recommended) useVisual Studio Code debuggerto run it - Run web: type
npm startinwebfolder - Adjust Front End to use new Strapi endpoints
To create an optimized build in both cases, run npm run build in web folder
First steps with Strapi
When you start the app, you should create yourself an example user, like
[email protected]/admin123
You can also use dummy data generator by sendingPOSTrequest tohttp://localhost:1337/app/generate-dummy-data
It will create few users and for each one of them few accounts, cards, transactions, messages and stats for the income/expenses stats widget on Front EndGo to Strapi admin panel
http://localhost:1337and set proper roles for all the endpoints your app is using, like enable generating dummy data forPublicrole. Otherwise you will see "Forbidden" every time you try to connect to the API
How to run Strapi API on VPS using PM2?
I assume you will use Ubuntu 20.04 LTS as your system
- Install node
sudo apt install nodejsand npmsudo apt install npm - Install
pm2package:npm i -g pm2 - Move all the Strapi files to /var/www/react-bank-api
- Run
NODE_ENV=production npm run build && pm2 start ecosystem.config.js --env production
This command will build Strapi admin panel inproductionmode and then will use PM2's configecosystem.config.jsto start the app - Now your production Strapi should be ready to serve
Remember to set up the routes permissions on the server as well, otherwise most of the endpoints will return "Forbidden"
HAVE FUN! 💪
探索相关项目
加载中…