This repository contains a guide for the user backend alpha of D FRAME.
config
: Checks for configuration in the environment file.models
: Contains MongoDB schemas.services
: Includes admin services.utils
: Consists of AES and API error files.api
: Contains all API routes.admin
: Routes for admin.blockchain-ingestion
: JSON ABI file.user
: All user routes.
-
Clone the LATEST repo of user-backend from here.
-
Create a
.env
file and fill the following content:NODE_ENV="development" DEV_MONGOOSE_URI_DB="" POLYGON_RPC_URL="" POLYGON_CHAIN_ID="" MAGIC_PUBLISHABLE_KEY="" MAGIC_SECRET_KEY="" DEV_PORT= AES_GCM_KEY="" MONGOSTRING=""
-
After setting up the
.env
file and pasting the content, run the following commands:yarn yarn start
If any errors persist, please contact the team.
To view the detailed API endpoints documentation, please refer to the ENDPOINTS.md file.
You can use ThunderClient, a powerful REST client extension for VS Code, to test and interact with these API endpoints.
Download Postman:
Alternatively, you can also use Postman, a popular API testing tool, for testing these endpoints.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
MAKE SURE TO GO THROUGH the MODELS and ROUTE folder carefully to understand the code logic
MAKE SURE TO EXPAND THIS README GUIDE FOR THE CHANGES MADE BY YOU SO IT IS UP TO DATE
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////