This is a Meteor project that uses Express.js to create a simple API for managing links.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to have Node.js and Meteor installed on your machine.
- Clone the repository
- Navigate to the project directory
- Run
meteor npm install
to install the dependencies - Run
meteor
to start the server
The project exposes an API endpoint /all-links
that returns all the links in the database.
The project uses Meteor's WebApp
to integrate Express.js into the Meteor server. It defines a single Express route handler for the /all-links
endpoint.
The insertLink
function is used to insert a new link into the LinksCollection
. This function is used in the Meteor.startup
function to populate the LinksCollection
with some initial data if it's empty.