chickenkyiv / api-extended-database-khyati Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I think if we'll start this task in parallel with working on import script - we'll be able to save some of your time.
here some links to read/explore
https://medium.com/@ansertechgeek/migrating-from-mocha-to-jest-in-nodejs-app-8afdfa4032d1
https://www.npmjs.com/package/jest-preset-loopback
https://www.npmjs.com/package/@gigster/module-loopback-jest
https://hackernoon.com/api-testing-with-jest-d1ab74005c0a
https://codeburst.io/trunk-based-development-vs-git-flow-a0212a6cae64 i'll examine you. understand the logic of future branching.
when you'll switch from file with data into database - you'll need to run loopback.automigrate method.
i have a samples, so buzz me and i'll move that information here.
this is the most recent version of import script that i did: https://github.com/ChickenKyiv/recipe-search-api/tree/master/bin
how to run this script: https://github.com/ChickenKyiv/recipe-search-api/blob/master/package.json#L15
not remember - but it can be broken at this moment. If it will crash - buzz me - and i'll finish it - cause i'm lazy to do it.
nice progress, BTW. we'll need an upload stuff for images soon
use command line only
https://github.com/blog/831-issues-2-0-the-next-generation
https://stackoverflow.com/questions/1687262/link-to-the-issue-number-on-github-within-a-commit-message
https://guides.github.com/features/issues/
Some information about migrations:
first part
it's a simple thing, you just need to call automigrate and specify tables that you need to drop.
and you need to run that script from CLI
second part is complex and related to importing data from js array into db row.
will be to create a file/files, with arrays(you can grab that data from db.json file)
then you'll need to create a file where you'll actually import data from array into db.
as before - you should check the latest version at search-api - and see how i did it here.
btw, i think your issue related to something else, so i'm cloning your repo and will take a look right now
https://github.com/optis/loopback-rest-api - this is the best tutorial that helps me 1 year ago.
Please buzz me before including mongodb database - so i'll generate a new instance for you.
As I want to see your progress - please use this repo and push your progress here. Share with me progress and questions that i can help you with. Don't hesitate to use my help. I willing to start fast and with less stress for you at the beginning. Also will check your git skills.
will later provide more details.
https://loopback.io/doc/en/lb3/Email-connector.html
https://github.com/ChickenKyiv/recipe-api-only/blob/master/server/models/menu.js#L11
https://github.com/ChickenKyiv/recipe-api-only/blob/master/server/datasources.trash.json#L12
https://github.com/ChickenKyiv/recipe-api-only/blob/master/package.json#L36
Raven.config('https://[email protected]/305339').install()
Init:
https://github.com/GroceriStar/groceristar/blob/master/server/server.js#L17
How to use this tracer:
https://github.com/GroceriStar/groceristar/blob/master/server/server.js#L60
if you'll cover your code well with this tracer - when you'll break something - I'll receive an email notification and will be able to understand more clearly what was goes wrong.
From @atherdon on March 10, 2018 0:47
Main repository: https://github.com/GroceriStar/groceristar
I move models here: https://github.com/ChickenKyiv/database-visuals/tree/master/groceristar/models
Review this files, dig into that JSON structure and create a visual for the current release.
Then I want to hear your ideas about how this schema can be improved.
Copied from original issue: ChickenKyiv/database-visuals#2
Hi Khyati, i have a few questions to you:
What do you think - are you feeling ready to work on some tasks related to main groceristar repository?
What do you think about making a first updates of db schema that we plan?
it can be a) ingredients with nutritions, b) items + qty
Btw, how it's going with import #18 i think i should help you somehow. because we're really ready to complete this loopback tutorial.
i can propose to you create a separated npm modules, that contain static data, that we have in our different repositories. like sample data of recipes, or list of basic ingrredients...
mongodb://heroku_b97rxdzw:[email protected]:41524/heroku_b97rxdzw
You'll need to have a loopback-connector-mongo package in order to setup it well.
Sample: https://github.com/GroceriStar/groceristar/blob/master/server/datasources.json
after starting to work on import
https://sentry.io/atherdon/grocery/issues/498497917/
Error: Cannot create data source "photos": Cannot find module 'pkgcloud'
File "/home/khyati/reservations/server/server.js", line 43, in Object.<anonymous>
boot(app, __dirname, function(err) {
...
(49 additional frame(s) were not displayed)
Error: Cannot create data source "photos": Cannot find module 'pkgcloud'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.