-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: sarthakjdev <[email protected]>
- Loading branch information
1 parent
d7b9012
commit daf9864
Showing
4 changed files
with
55 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
title: 'Setting up Wapi.js Application Development Environment' | ||
--- | ||
|
||
|
||
## Initiating a Wapi.js project | ||
|
||
### Chat bot | ||
|
||
The first step to build a wapi.js based chat bot is to create a new node.js project. You can quickly setup a new project using the utility NPM package provided with the wapi.js SDK only, run the following command in your terminal to setup the project: | ||
|
||
```bash | ||
pnpm create-wapi-app my-whatsapp-bot | ||
``` | ||
|
||
<Check>Once you run this command, you would be asked a couple of questions like the name of the project and whether you want to use typescript or javascript for this project. Once you answer them, you project will start to setup and once done. You can navigate to the project directory and start building your chat bot.</Check> | ||
|
||
### Other use cases | ||
|
||
|
||
- You are a developer and want to integrate the whatsapp business API with your existing backend. | ||
- You are a solution partner or a tech partner with WhatsApp and want to access the WhatsApp business API to build a solution for your clients. | ||
|
||
To do so, you can install the wapi.js SDK using the following command: | ||
|
||
<Tabs> | ||
<Tab title="pnpm"> | ||
```bash | ||
pnpm add @wapijs/wapi.js | ||
``` | ||
</Tab> | ||
<Tab title="yarn"> | ||
```bash | ||
yarn add @wapijs/wapi.js | ||
``` | ||
</Tab> | ||
<Tab title="npm"> | ||
```bash | ||
npm install @wapi/wapi.js | ||
``` | ||
</Tab> | ||
</Tabs> | ||
|
||
### You may also consider the following best pratices of developing a Node.js Application: | ||
|
||
- Setting up a Linter. | ||
- Setting up a formatter. | ||
- Setting up proper scripts in package.json. | ||
- Using a version control system like Git and setting up workflows for Github Actions for sanity build and lint checks. | ||
- Using consistent naming conventions. | ||
- Using environment variables for sensitive information. | ||
|
||
<Note> Process to building the application [docs](/guide/building-your-application), for further assistance.</Note> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
apps/js.wapikit.com/guide/whatsapp-api-setup/account-verification.mdx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters