Skip to content

Commit ef6152d

Browse files
author
Maximilian Schwarzmüller
committed
finished basic setup
0 parents  commit ef6152d

File tree

6 files changed

+400
-0
lines changed

6 files changed

+400
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

README.MD

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Creating a RESTful API with Node.js
2+
This repository accompanies my YouTube video series on building a RESTful API with Node.js
3+
4+
## Usage
5+
Check out the branch you're interested in (i.e. which belongs to the video in my series you just watched), ```git clone``` it and thereafter run ```npm install```.

app.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const express = require('express');
2+
const app = express();
3+
4+
app.use((req, res, next) => {
5+
res.status(200).json({
6+
message: 'It works!'
7+
});
8+
});
9+
10+
module.exports = app;

package-lock.json

+357
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "rest-shop",
3+
"version": "1.0.0",
4+
"description": "A Node.js RESTful API Tutorial Project (Build a simple shop API)",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [
10+
"node",
11+
"restful",
12+
"api"
13+
],
14+
"author": "Maximilian Schwarzmüller",
15+
"license": "ISC",
16+
"dependencies": {
17+
"express": "^4.16.2"
18+
}
19+
}

0 commit comments

Comments
 (0)