This repository contains the source code of the share-a-meal backend server. The application is written with Node/Express.
This application provides a Node server that serves various endpoints. It is written based on the REST architecture. It is possible to add meals and users and retrieve the added meals and users. All the other CRUD operations are possible as well, such as updating a user for example.
Clone the project
git clone https://github.com/martijnschermers/share-a-meal.git
Go to the project directory
cd share-a-meal
Install dependencies
npm install
Create a local database
cd share-a-meal
mysql -u root
CREATE DATABASE share_a_meal;
USE share_a_meal;
SOURCE database.sql;
Start the database with XAMPP
Start the server
npm run dev
To run tests, run the following command
npm run test
Server: Node, Express, MySQL