Skip to content

Instantly share code, notes, and snippets.

View Gary-Ascuy's full-sized avatar
🔥
Thinking ...

Gary Ascuy Gary-Ascuy

🔥
Thinking ...
View GitHub Profile
import { Meteor } from 'meteor/meteor'
import { Persons } from '/imports/api/persons/persons'
Meteor.publish('Persons.byRole', function(role) {
check(role, String)
return Persons.find({role: role}, {fields: {name: 1}})
})
10.28.114.14 alejandra.vargas
10.28.114.15 alex.caceres
10.28.114.16 alvaro.torrez
10.28.114.17 ariel.arteaga
10.28.114.18 cristhian.arostegui
10.28.114.19 daniel.asin
10.28.114.20 gibran.jalil
10.28.114.21 gramsci.hermozo
@Gary-Ascuy
Gary-Ascuy / vsinder.frontend.App.js
Last active January 7, 2021 05:04
VSinder - Frontend/App.js
import React, { useState, useEffect } from 'react'
function Profile({ user }) {
return (
<div className='profile'>
<a className='name' href={user.github}>
<div>{user.name}</div>
</a>
<h4 className='role'>{user.role}</h4>
<p className='bio'>{user.bio}</p>
@Gary-Ascuy
Gary-Ascuy / vsinder.backend.app.js
Last active January 7, 2021 05:04
VSinder - Backend/app.js
const express = require('express')
const app = express()
const host = '0.0.0.0'
const port = 3666
app.get('/', (req, res) => {
res.send('API v1.0')
})
@Gary-Ascuy
Gary-Ascuy / vsinder.devops.Dockerfile
Last active January 7, 2021 05:05
VSinder - DevOps/Dockerfile
FROM node:15.5-alpine
LABEL MAINTAINER="gary.ascuy@gmail.com"
ENV NODE_ENV=production
WORKDIR /usr/app
EXPOSE 3666
ADD ./src/app.js ./src/app.js
ADD ./package.json ./package.json
RUN yarn install