Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
anasvakyathodi committed Oct 5, 2020
0 parents commit f447107
Show file tree
Hide file tree
Showing 28 changed files with 16,137 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"files.associations": {
"*.c": "c",
"*.txt": "c"
}
}
Binary file added README.md
Binary file not shown.
2 changes: 2 additions & 0 deletions blog-backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/.env
21 changes: 21 additions & 0 deletions blog-backend/models/postModel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const mongoose = require("mongoose");

const postSchema = mongoose.Schema({
title: {
type: String,
required: true,
},
createdAt: {
type: Number,
required: true,
},
tags: {
type: [String],
},
html: {
type: String,
required: true,
},
});

module.exports = Post = mongoose.model("post", postSchema);
Loading

0 comments on commit f447107

Please sign in to comment.