A REST API in typescript for creating and updating your online content using an RSS feed.
Nodejs, Typescript and Yarn.
- In
srcfolder, there are:index.tsincluding the instantiation of express app.- the
routerfolder including theapi.tswith the configuration of the routes. - the
controllerfolder including functionality used inside routes, regarding creating and updating feed.
configfolder includes a file with the default parameters that can be accessed throughout the repository.- In
package.json, you can find project related information, such as name and dependencies. - Folder
libdoes not exist but will be created. It will include the transpiled javascript files coming from the corresponding typescript files.
In order to install all packages, you have to use:
yarnAnd for transpiling to javascript, you have to run:
yarn buildThen, in order to run the server, you have to use:
yarn serverThe API runs on: http://localhost:8080/ .
For updating your RSS, you have to do a post request with content type header application/json and as data a JSON with the string properties title, link and description.
You get back the RSS everytime you update but also with a simple get request.