Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

How to aproach existing db #2321

Answered by sio4
francoganga asked this question in Q&A
Sep 15, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

I want to use it with the --api flag to do a simple rest api querying a existing postgres db.

OK, what I understood regarding your main point is that you don't want to create/manage new database tables using Buffalo's database management features such as migration but just want to use your existing database tables as a data store for the models of your app. Is it correct? It could be simple. Let's see the typical workflow of developing an application with Buffalo briefly.

  1. scaffold the app using buffalo new app ...., and go into the app's directory.
  2. configure DBMS connection by editing database.yml with the access parameters such as user, password, host, port, etc.
  3. create resources by r…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@francoganga
Comment options

Answer selected by francoganga
Comment options

You must be logged in to vote
1 reply
@sio4
Comment options

sio4 Sep 18, 2022
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants