- Create an app in Twitter's developer account.
- Navigate to Apps details -> Keys and Tokens
- Click on generate to get Access token and access token secret.
- Copy and store it safely along with API and API Secret key.
- Download or clone this repository.
- Open the terminal/command prompt on the root folder.
- Create a
.env
file under server folder next to.env.example
. - Copy the contents from
.env.example
to.env
. - Use the tokens and secret keys obtained from step 1 to fill the fields in
.env
file.
From your root folder, run the following commands in the terminal/command prompt.
npm run client-server:install
- To install 3rd party libraries.npm run client-server:build
- To compile both client and server's TypeScript code to JavaScript code.npm run server:start
- To start the server- Go to your browser and visit http://localhost:4000
From your root folder, run the following commands in the terminal/command prompt (You can skip steps 1 - 2 if you have followed the above method).
npm run client-server:install
- To install 3rd party libraries.npm run client-server:build
- To compile both client and server's TypeScript code to JavaScript code.npm run client-server:start
- To start both client and server concurrently.- It should automatically take you to the browser. If not, visit http://localhost:3000 in your browser.
From your root folder, run the following commands in the terminal/command prompt.
npm run server:start
- To start the server.- open another tab in the terminal/command prompt
npm run test
- To run the test.
We can use AWS CodePipeline to source this repository and automatically start build and deploy prcocess when a commit is been made to the master branch.
- Optimal configuration for AWS CodePipeline:
- Source - This GitHub repository.
- Build - AWS CodeBuild.
- Deploy - AWS Elastic BeanStalk.