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
- Node JS
- Node Package Manager (NPM)
# 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
- Create a new file named config.env in the root directory of the project
- 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
npm start
- CRUD processes for the MoodBuzz web app