To get started with this project, follow these steps:
- Install Node.js by running
npm i node
in your terminal. - Install Express by running
npm i express
in your terminal. - Install EJS by running
npm i ejs
in your terminal. - Install Touch CLI globally by running
npm i touch-cli -g
in your terminal. - Install Lodash by running
npm i lodash
in your terminal. - Install Axios by running
npm i axios
in your terminal. - Refer to the following links to set up a basic Express app:
- https://posthog.com/tutorials/node-express-analytics (up to step 2)
- Run the application by using
node server.js
in your terminal. - For all the Lodash functions, you can refer to the Lodash documentation at https://lodash.com/docs/4.17.15.
- The app will be set up at http://localhost:3000/.
- The route for the search functionality is set up at http://localhost:3000/search.
- The route for blog stats is set up at http://localhost:3000/api/blog-stats.
- To test the functionality, navigate to the appropriate URL.