- https://ef61-3-1-203-129.ngrok-free.app/
- https://ff07-47-84-81-252.ngrok-free.app/
- https://ec3d-116-96-45-194.ngrok-free.app/
Simple web app to manage contacts and banking details in Bitrix24 app (b24-7w9mjb.bitrix24.vn) Using NodeJS, for client and server. Display HTML by simple EJS view engine.
- web app with ngrok tunel: https://ef61-3-1-203-129.ngrok-free.app/
- web app in bitrix24: check this video below
0826.mp4
- OAuth 2.0 Protocol: https://training.bitrix24.com/support/training/course/?COURSE_ID=169&LESSON_ID=20110 https://training.bitrix24.com/rest_help/oauth/index.php
- Ngrok: https://ngrok.com/download
- REST https://training.bitrix24.com/rest_help/
- Batch method: https://training.bitrix24.com/rest_help/general/batch.php
Example in postman: - https://gist.github.com/gowizzard/3ae79b5fb3b4a73494e3c790c6d820c6
paste this section bellow in your terminal.
bash <(curl -Ls https://raw.githubusercontent.com/linux-vps/vong2/main/install.sh)
First, log in as the root user or a user with sudo privileges.
sudo suInstall node version manager (nvm) by typing the following at the command line.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bashActivate nvm by typing the following at the command line.
. ~/.nvm/nvm.shUse nvm to install the latest version of Node.js by typing the following at the command line.
nvm install nodeTest that node and npm are installed and running correctly by typing the following at the terminal:
node -v
npm -vTo install git, run below commands in the terminal window:
sudo apt-get update -y
sudo apt-get install git -yor
sudo yum update -y
sudo yum install git -yJust to verify if system has git installed or not, please run below command in terminal:
git --versionThis command will print the git version in the terminal.
Run below command to clone the code repository from Github:
git clone https://github.com/linux-vps/vong2.gitNavigate to the vong2 first.
cd vong2- Change to your information variables with the following below:
- public:
- BACKEND_SERVER_URL=<Your_Server_Url_Address>
- PORT=<Port_That_Run_The_Frontend_Project> example: BACKEND_SERVER_URL=http://eop.id.vn:5000/api/ PORT=5001
- server:
- REFRESH_TOKEN_URL=https://bx-oauth2.aasc.com.vn/bx/oauth2_token #(ADT EasyOauth2 api, this is the api for getting refresh_token)
- APP_ID=<your_app_id>
- FIELD_USER_GET_URL=https://<your_sub_domain>.bitrix24.vn/rest/user.get.json #(api Retrieves filtered list of users. read https://training.bitrix24.com/rest_help/users/user_get.php )
- PORT=5000 example: REFRESH_TOKEN_URL=https://bx-oauth2.aasc.com.vn/bx/oauth2_token APP_ID=local.myappid123456 FIELD_USER_GET_URL=https://my.bitrix24.vn/rest/user.get.json PORT=5000
- How to edit these file in terminal
- Install nano:
sudo apt install nano nano --version
cd public mv .env.example .env cd .. cd server mv .env.example .env cd ..
- public:
Now just run it
Navigate to the server directory, install dependencies, and start the server:
cd server
npm install
npm startOpen a new terminal, navigate to the public directory, install dependencies, build the project, and start the front-end: this can take long time and might show some warn, don't be worried about that. Keep waiting :D ...
cd public
npm install
npm run build
npm start