https://food-liberation-front.herokuapp.com
The build folder is ready to be deployed. You may serve it with a static server:
npm install -g serve
serve -s build
Find out more about deployment here:
npm install -g create-react-app
npm install
node .
cd client_src
npm install
npm start
http://loopback.io/doc/en/lb3/Create-new-data-source.html
npm install -g loopback-cli
lb
// ❯ api-server (A LoopBack API server with local User auth)
cd Food_Lieraton_Front
lb datasource
"mLAB_flf": {
"host": "",
"port": 61678,
"url": "mongodb://food-liberation-front:92!1WdzRBH*a@ds261678.mlab.com:61678/food-liberation-front",
"database": "food-liberation-front",
"password": "92!1WdzRBH*a",
"name": "mLAB_flf",
"user": "food-liberation-front",
"connector": "mongodb"
}
lb model
{
"name": "Barrel",
"base": "PersistedModel",
"properties": {
"Name": {
"type": "string",
"required": true,
"default": "Barrel #0048"
},
"barrel_number": {
"type": "number",
"required": true,
"default": 48
},
"date_planted": {
"type": "date",
"required": true,
"default": "2018-03-20T00:00:00.000Z"
},
"size": {
"type": "string",
"required": true,
"default": "1 gallon"
},
"contents": {
"type": "string",
"required": true,
"default": "sunchoke, air potato, walking onion"
},
"location": {
"type": "string",
"required": true,
"default": "EBF"
},
"geoLocaction": {
"type": "geopoint",
"required": true,
"default": {
"lat": 35.5951,
"lng": 82.5515
}
},
"date_last_checked": {
"type": "date",
"required": true,
"default": "2017-11-20T00:00:00.000Z"
},
"notes": {
"type": "string"
},
"image": {
"type": "string",
"default": "https://goo.gl/photos/p3jXTkmstWyUvA2r5"
}
},
}
node .
npm install -g apiconnect
apic loopback
cd /home/ubuntu/workspace/StrongBackTangent
apic create --type model
lb app loopback-example-database
// fuzzy directions ..
cd loopback-example-database
npm install --save loopback-connector-mongodb
//lb datasource accountDS
slc datasource:accountDS
# follow the prompts
//lb model
slc loopback:model
# follow the prompts