This is the API for the TIPS application. It is a RESTful API built with Node.js, Express, and MySQL. It is used to store and retrieve data for the TIPS application.
These instructions will help you set up and run the API on your local machine for development and testing purposes.
Ensure that you have the following software installed on your machine:
- Node.js
- npm (Node Package Manager) - comes with Node.js
- Postman - for testing API endpoints
- XAMPP - for running MySQL database
Follow these steps to install and run the API:
- Clone the repository to your local machine
git clone https://github.com/GetLoloed/api-tips.git
- Open the project folder in your terminal
cd api-tips
- Run
npm install
to install all dependencies - Run
npm start
to start the server ornpm run dev
to start the server with nodemon
The API should now be running on http://localhost:3000.
You can access the Swagger documentation for the API by navigating to http://localhost:3000/api-docs
in your browser.
To run the tests, run npm test
in your terminal.