- Support switch from top headlines for both New York Times and Guardian News.
- Top-headlines could be for any of the following domains: world, politics, business, technology and sports.
- Each such article can be shared by the user on Facebook, Twitter or via Email.
- Support both desktop and mobile browsers.
- Support autocomplete search and comment on each news.
- Support saving favorite news and removing them.
Go to the client repository: cd dev/myclient
Run: npm install
Run: npm start
Go to the server repository: cd dev/myserver
Run: npm install
Run: npm start
To get started with the CommentBox.io API, visit: https://dashboard.commentbox.io/projects
Creat a project and enther localhost:3000 in the "web domain". This action makes commentBox.io working properly in your browser.
Open browser on localhost:3000
- Create an EC2 instance, make sure open TCP connections on port 3000(frontend) and 4000(backend).
Remember to edit all urls in
production/myserver/routers
to be your urls. - Download pem file.
Run
chmod 400 [your pem file]
Connect your EC2 instance usingssh -i "[your_pem].pem" ubuntu@[your EC2 public DNS]
- Install curl
sudo apt-get install curl
Install node.js using curlcurl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install -y nodejs
- Install PM2
sudo npm install pm2@latest -g
- Download code into your EC2 instance.
- Run
npm install
inproduction/myclient
- Run
npm build
inproduction/myclient
- Run
npm install
inproduction/myserver
- Go to directory
production/
pm2 start myapp.config.js
- Go to your commentbox.io's dashboard and put [your EC2 public DNS:3000] into the "web domain"
- Check the website in your EC2 public DNS.