mtalhabaig3 / konstant-full-stack-task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My React Project

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.

Prerequisites

Make sure you have the following software installed on your machine:

  • Node.js (v12 or higher)
  • npm (Node Package Manager)

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/my-react-project.git
    
  2. Navigate to the project directory:

    cd my-react-project
    
  3. Install the project dependencies:

    npm install
    

Starting the Node.js Server

To start the Node.js server, follow these steps:

Open a new terminal window.

  1. Navigate to the server directory:
    cd BackEnd
    
  2. Install the server dependencies:
    npm install
    
  3. Start the server:
    node server.js
    

Usage

  1. To run the React project locally, use the following command:
    npm start
    
    

Running Tests

  1. To run the tests for the project, use the following command:
    npm test
    
    
    
    
    
    
    
    
    
    
    
    

About


Languages

Language:JavaScript 86.2%Language:CSS 9.1%Language:HTML 4.7%