The Zwallet API for Zwallet Mobile Application.
API build in Express.js and MySQL for Quattuor/zwallet-app
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/Quattuor/zwallet-api.git
- Install NPM packages
This will install the dependencies inside
npm install
node_modules
Please create and make the changes in the .env file.
MYSQL_HOST = YOUR_HOSTNAME
MYSQL_USER = YOUR_DBUSER
MYSQL_PASS = YOUR_DBPASS
MYSQL_DATABASE = YOUR_DBNAME
PORT = YOUR_PORT
LOCAL = YOUR_APIURL
SECRET_KEY = "YOUR_SECRET_KEY"
FROM = "YOUR_EMAIL_NAME"
EMAIL = "YOUR_EMAIL_ID"
EPASS = "YOUR_EMAIL_PASS"
node index
OR nodemon start
OR npm start
Runs the app in the development mode.
Open http://localhost:4000/ to view it in the browser.
Method | Endpoint | Description |
---|---|---|
POST | /auth/register | Register New User |
POST | /auth/login | Login User |
POST | /auth/logout | Logout User |
GET | /auth/verify | Activate User Account |
POST | /auth/forgot | Forgot Password User |
POST | /auth/otp | Verif OTP Forgot Password |
PATCH | /auth/reset | Reset Password User |
For more info visit Endpoint User, Endpoint Transfer and Contact
Distributed under the MIT License.