/node-sub-api

A RESTful API for storing and retrieving subscriber data, made as a tutorial project

Primary LanguageJavaScript

node-sub-api

A Node.js RESTful API made using Express, MongoDB, and Mongoose

It stores and retrieves YouTube subscriber data and supports GET/, GET/:id/, POST/, PATCH/:id/, and DELETE/:id/ routes

Schema

        name: {
		type: String,
		required: true,
	},
	subscriberToChannel: {
		type: String,
		required: true,
	},
	subscribeDate: {
		type: Date,
		required: true,
		default: Date.now,
	}

Usage

git clone https://github.com/2bit-hack/node-sub-api.git
npm install
touch .env
// export DATABASE_URL=mongodb://path/to/database
npm start run