A NodeJS
, MongoDB
, Express
, and ReactJS
application where users can query, display, and save articles from the New York Times Article Search API. Users can remove saved articles as well.
Please check out the deployed version in Heroku here!
Click on the headlines to be re-directed to the full New York Times articles.
On the backend, the app uses express
to serve routes and mongoose
to interact with a MongoDB
database.
On the frontend, the app uses ReactJS
for rendering components, axios
for internal/external API calls, and bootstrap
as a styling framework.
In order to transpile the JSX code, webpack
and babel
were utilized. All of the JSX code in the /app
folder was transpiled into the bundle.js
file located in the /public
folder.
If you wish to clone the app down to your local machine...
- Ensure that you have MongoDB set up on your laptop * An amazing repo to get you started with that can be found here.
- Once you are set up,
cd
into this repo and runnpm install
. - Then open another bash or terminal window and run
mongod
- Run the script with
node server.js
. - Navigate to
localhost:3000
in your browser.
Note that if you made changes to the JSX code in the /app
folder, you must transpile it to see your changes. When cd
-ed into this repo, enter npm run bundle
in the command line to trigger my webpack
script.
The /test
folder can be disregarded since its files were made just for laying out the design of the app.