Skip to content

An API built for my MoodBuzz Web App using Node JS. Handles all database operations for the web app.

Notifications You must be signed in to change notification settings

GerardGargan/MoodBuzz-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoodBuzz Web App

This API was developed as part of the CSC7082 Web Development Module at Queens University Belfast. It is a requirement for the MoodBuzz-Node Repo and handles all CRUD processes on behalf of the web app.

URL for locally hosted server: http://localhost:3001

Table of Contents

  1. Prerequisites
  2. Installation
  3. Configuration
  4. Usage
  5. Features

Prerequisites

  • Node JS
  • Node Package Manager (NPM)

Installation

# Clone the repository
git clone https://github.com/GerardGargan/MoodBuzz-API.git

# Navigate to the project directory
cd MoodBuzz-API

# Install dependencies
npm install

In the sql folder you will find sql code which you can use to set up the database tables

Configuration

  1. Create a new file named config.env in the root directory of the project
  2. Add the following code to config.env:
PORT = 3001

DB_HOST = your_database_host
DB_USER = your_database_user
DB_PASS = your_database_password
DB_NAME = your_database_name
DB_PORT = your_database_port

Change the port to suit your requirements, it must also be updated in any of the web app's requests to the API

Usage

npm start

Features

  • CRUD processes for the MoodBuzz web app

About

An API built for my MoodBuzz Web App using Node JS. Handles all database operations for the web app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published