This is a sample React project that demonstrates a simple message board application. It has a:
- Register and Login Module.
- A user is able to list all his posts and is able to see all other users’ posts but is only able to edit and delete his own posts.
- Post contains username, message and Time stamp, and can be edited and deleted.
It also has a RESTfull built in Node js where a user can:
- A client can create a message in the service.
- A client can modify their own messages.
- A client can delete their own messages.
- A client can view all messages in the service.
Make sure you have the following software installed on your machine:
- Node.js (v12 or higher)
- npm (Node Package Manager)
-
Clone the repository to your local machine:
git clone https://github.com/your-username/my-react-project.git
-
Navigate to the project directory:
cd my-react-project
-
Install the project dependencies:
npm install
To start the Node.js server, follow these steps:
Open a new terminal window.
- Navigate to the server directory:
cd BackEnd
- Install the server dependencies:
npm install
- Start the server:
node server.js
- To run the React project locally, use the following command:
npm start
- To run the tests for the project, use the following command:
npm test