This file contains 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 { Persons } from '/imports/api/persons/persons' | |
Meteor.publish('Persons.byRole', function(role) { | |
check(role, String) | |
return Persons.find({role: role}, {fields: {name: 1}}) | |
}) |
This file contains 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
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 |
This file contains 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 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> |
This file contains 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 express = require('express') | |
const app = express() | |
const host = '0.0.0.0' | |
const port = 3666 | |
app.get('/', (req, res) => { | |
res.send('API v1.0') | |
}) | |
This file contains 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
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 |
OlderNewer