Skip to content

2tocom/testbx2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEMO:

Description

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.

0826.mp4

Some documentation about this project:

  1. 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
  2. Ngrok: https://ngrok.com/download
  3. REST https://training.bitrix24.com/rest_help/
  4. Batch method: https://training.bitrix24.com/rest_help/general/batch.php

An little collection for postman for the crm module of bitrix24.

Example in postman: - https://gist.github.com/gowizzard/3ae79b5fb3b4a73494e3c790c6d820c6

Quick install

paste this section bellow in your terminal.

bash <(curl -Ls https://raw.githubusercontent.com/linux-vps/vong2/main/install.sh)

Installation

Step 1: Install NodeJS and NPM using nvm

First, log in as the root user or a user with sudo privileges.

sudo su

Install 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 | bash

Activate nvm by typing the following at the command line.

. ~/.nvm/nvm.sh

Use nvm to install the latest version of Node.js by typing the following at the command line.

nvm install node

Test that node and npm are installed and running correctly by typing the following at the terminal:

node -v
npm -v

Step 2: Install Git and clone repository from GitHub

To install git, run below commands in the terminal window:

sudo apt-get update -y
sudo apt-get install git -y

or

sudo yum update -y
sudo yum install git -y

Just to verify if system has git installed or not, please run below command in terminal:

git --version

This 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.git

Navigate to the vong2 first.

cd vong2

Before starting: Prepare Environment variables.

In each .env.example file in each directory

Now just run it

Navigate to the server directory, install dependencies, and start the server:

cd server
npm install
npm start

Open 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

We can keep the web alive with PM2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors