The front-end code for the Hacker news. Built in React, Redux and Webpack.
1. Clone Git Repo.
$ git clone [email protected]:gitmurali/hacker-news.git
2. Install Dependencies.
Once that's all done, cd into the hacker-news directory and install the depedencies:
$ cd hacker-news
$ npm install
3. Update .env
The environment variables are stored in CircleCi. Therefore on build, the .env file is created dynamically with all the appropriate values. On local, you need to manually set the values.
4. Run Application.
Once the node modules have all been installed and npm has done it's thing, that's it. To open up a local development environment, run:
$ npm run start
Once the server is up and running, navigate to localhost:3000.
Jest is testing platform used for the project. To run test use the following command:
$ npm run test
We use Circle CI as the CI/CD tool.