GithubHelp home page GithubHelp logo

api-extended-database-khyati's People

Contributors

atherdon avatar dependabot-support avatar khyati0212 avatar

Watchers

 avatar  avatar

api-extended-database-khyati's Issues

run automigrate before calling a mongodb database

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.

#5

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

git

Description/Steps to reproduce

  • convert our flow to good git-flow.
  • broke few forks(0)
  • make 30 commits (15)
  • make 9 pull requests (4)
  • make 6 merge conflicts and fix them (1)
  • make 5-10 future branches, related in a different ways(few times checkout from develop, few times from each other feature branch)(6)
  • 6 branch merges(4)

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/

https://stackoverflow.com/questions/4528869/how-do-you-attach-a-new-pull-request-to-an-existing-issue-on-github

Expected result

Additional information

migration + import

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

First step. Loopback intro

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.

next steps plan

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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.