Skip to content

Commit

Permalink
Merge pull request #3 from bsb-devs/i02_Definir_arquitetura_do_projeto
Browse files Browse the repository at this point in the history
Adding basic architecture and .gitignore
  • Loading branch information
Marofelipe authored Jan 7, 2021
2 parents 8d1f6ad + 3bef20a commit ab7e99f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn.lock
node_modules
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "recipes-api",
"version": "1.0.0",
"description": "Um projeto sobre receitas",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bsb-devs/recipes-api.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/bsb-devs/recipes-api/issues"
},
"homepage": "https://github.com/bsb-devs/recipes-api#readme",
"dependencies": {
"body-parse": "^0.1.0",
"express": "^4.17.1"
}
}
9 changes: 9 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const express = require('express');
const bodyParser = require('body-parser');

const app = express();

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));

app.listen(5000);

0 comments on commit ab7e99f

Please sign in to comment.