full-stack-assignment

Description

This project is a web application that allows users to register, authenticate, create, read, update, and delete questions and answers. It includes a server-side API built with Node.js and Express.js, and uses JSON files as databases for storing user data, question data, and answer data.

Installation

To run this project, you will need to have Node.js installed on your machine. You can download it from the official website: https://nodejs.org/

To install the project dependencies, run the following command in your terminal:

npm install

Usage

To start the server, run the following command:

sql

npm start

The server will start listening on port 3000 by default.

Dependencies

This project uses the following dependencies:

Project structure

The project has the following structure:

Routes

The application defines the following routes:

Middleware

The application uses the following middleware:

Helpers

The application uses the following helper functions:

Error handling

The application uses an error handling middleware to handle errors.