Welcome to the React Blog App repository! This project combines the power of React, Node.js, and various technologies to create a dynamic and feature-rich blog application. Here's a guide to setting up and running the app:
To get started with the frontend, follow these steps:
-
Install
react-router-dom
for client-side routing:npm install react-router-dom
-
Open the
package.json
file and add"proxy": "http://localhost:8000/"
to enable communication between the frontend and backend.
For the backend, we use Node.js with Express for server development. Additionally, Firebase and Google Cloud Platform (GCP) are integrated for authentication and deployment:
- Firebase: For authentication and user management.
- GCP: For deploying the application to the cloud.
To integrate with Google Cloud Platform, follow these steps:
-
Log in to your GCP account using the following command:
gcloud auth login
-
Set the GCP project for deployment:
gcloud config set project react-alpha-blog
-
Deploy your app to GCP:
gcloud app deploy
This project covers a wide range of technologies and concepts, including:
- Creating engaging frontend applications using React.
- Setting up a robust backend server with Node.js and Express.
- Efficient database management using MongoDB.
- Implementing user authentication with Firebase.
- Establishing seamless communication between frontend and backend using Axios.
- Deploying and hosting the application on Google Cloud Platform.
To start the development servers:
-
For the frontend, use:
npm start
-
For the backend, use:
npm run dev
TODO: update UI, reconfigure backend