This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const port = 3000 | |
require('http') | |
.createServer((req, res) => { | |
}) | |
.listen(port, (error)=>{ | |
console.log(`server is running on ${port}`) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getUserData() { | |
const id = Meteor.userId(); | |
if (id) { | |
const data = Meteor.users.findOne({ _id: id }); | |
if(data){ | |
console.log(data) | |
} | |
} | |
} | |
handleLogin(data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class todosContainer extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
loading: false, | |
todos: {} | |
} | |
} | |
createNewTodo(data){ | |
Meteor.call('todo.insert', data, function(err){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Meteor } from 'meteor/meteor'; | |
import { Mongo } from 'meteor/mongo'; | |
export const Teams = new Mongo.Collection('teams'); | |
if (Meteor.isServer) { | |
// This code only runs on the server | |
Meteor.publish('teams', function groupPublication() { | |
return Teams.find(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Display Property</title> | |
<style> | |
#main{ | |
height: 100px; | |
width: 200px; | |
background: teal; | |
display: block; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Display Property</title> | |
<style> | |
#main{ | |
height: 100px; | |
width: 200px; | |
background: teal; | |
display: inline-block; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Display Property</title> | |
<style> | |
#main{ | |
height: 200px; | |
width: 200px; | |
background: teal; | |
display: inline; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style> | |
#geeks1{ | |
height: 100px; | |
width: 200px; | |
background: teal; | |
display: block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"author": " Application", | |
"background_color": "#3367D6", | |
"description": "app", | |
"display": "fullscreen", | |
"icons": [ | |
{ | |
"src": "favicon.ico", | |
"sizes": "64x64 32x32 24x24 16x16", | |
"type": "image/x-icon" |