This project will run on NodeJs using MongoDB as database.
- Basic Authentication (Register/Login with hashed password)
- JWT Tokens, make requests with a token after login with
Authorizationheader with valueBearer thisisasamplesecretwherethisisasamplesecretwill be returned in Login response. - Deposit API
- Transfer API
- View transactions API
- Node.js 8+
- MongoDB 3.6+ (Recommended 4+)
- Clone the project from github.
git clone https://github.com/Vectormike/e-Wallet-system ewallet- Download repository
- Uncompress to your desired directory
cd ewallet
npm install- You will find a file named
.env.exampleon root directory of project. - Create a new file by copying and pasting the file and then renaming it to just
.envcp .env.example .env
- The file
.envis already ignored, so you never commit your credentials. - Change the values of the file to your environment. Helpful comments added to
.env.examplefile to understand the constants.
npm run devYou will know server is running by checking the output of the command npm run dev
Connected to mongodb:YOUR_DB_CONNECTION_STRING
App is running ...
Press CTRL + C to stop the process.Note: MONGODB_URL will be your MongoDB connection string.