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.
- Backend: Node.js Server
- Data: In-memory data structures (arrays or objects) for data storage and management
- Frontend: React for client-side
- Node.js installed on your machine
- yarn (package manager installed)
- Clone the repository:
git clone https://github.com/c0deZ0ne/nairabook.git cd nairabook
Copy code
- Locate the
env.sample
file in both thefrontend
andbackend
directories. - Rename the file to
.env
and update the values to match your environment settings.
-
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
-
open your your browser and navigate to :
http://localhost:4000