c0deZ0ne / nairabook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Author Books Website Assessment

Description

This project is a Node.js backend server that uses in-memory data structures to store and manage data. The server provides endpoints to interact with the data. Optionally, a NoSQL database can be used for data storage, and a basic React frontend can be created to interact with the API. Both the backend and frontend are available for testing in the provided solution.

System Components

  • Backend: Node.js Server
  • Data: In-memory data structures (arrays or objects) for data storage and management
  • Frontend: React for client-side

Running Instructions

Prerequisites

  • Node.js installed on your machine
  • yarn (package manager installed)

Setup

  1. Clone the repository:
    git clone https://github.com/c0deZ0ne/nairabook.git
    cd nairabook

Copy code

Configure Your Environment

  1. Locate the env.sample file in both the frontend and backend directories.
  2. Rename the file to .env and update the values to match your environment settings.

Install the Dependencies

  1. Run the following commands to install the dependencies and start the servers:

    # Navigate to the backend directory
    cd backend
    # Install the dependencies
    yarn install
    # Start the backend server
    yarn dev
  2. open your your browser and navigate to :

    http://localhost:4000

About

License:MIT License


Languages

Language:TypeScript 81.7%Language:EJS 7.1%Language:HTML 6.6%Language:CSS 2.6%Language:JavaScript 1.9%