Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialize rails project #1

Closed
skamansam opened this issue Dec 29, 2019 · 9 comments
Closed

initialize rails project #1

skamansam opened this issue Dec 29, 2019 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@skamansam
Copy link
Member

skamansam commented Dec 29, 2019

We need to initialize the project with the latest version of rails, using the API settings. See https://edgeguides.rubyonrails.org/api_app.html for how to do this. The project name should be the same as this repo's name. The resulting README should contain at least the project name and the description as it is currently in the README.

@skamansam skamansam added the enhancement New feature or request label Dec 29, 2019
@skamansam skamansam added this to To do in Initialize App via automation Dec 29, 2019
@KickButtowski80
Copy link
Contributor

I am confused about making the project.
Is it project like a folder inside the repo?

@KickButtowski80 KickButtowski80 moved this from To do to In progress in Initialize App Dec 30, 2019
@KickButtowski80
Copy link
Contributor

KickButtowski80 commented Dec 30, 2019

I am confused about making the project.
Is it project like a folder inside the repo?

I found this link https://blog.jasonmeridth.com/posts/create-rails-application-in-current-directory/ which sloves my issue

@KickButtowski80
Copy link
Contributor

I am confused
I do not know what I need to do
I thought the link is gonna be the answer, yet I cannot make new project by rails new . --api

@skamansam
Copy link
Member Author

see documentation for the rails command line tools here: https://guides.rubyonrails.org/command_line.html . After initializing the app, add the git remote (this repo) by following the directions here: https://help.github.com/en/github/using-git/adding-a-remote

@skamansam
Copy link
Member Author

also, it may be easier to init webpack with vue, using the --webpack=vue option for rails new

@skamansam
Copy link
Member Author

It seems we need to not use the --api flag if we want to keep the frontend and backend together. We can work around it, but it may be easier for now, to skip this flag.

@KickButtowski80
Copy link
Contributor

Even though I have already known all those commands , I went through the link found nothing new. As you see in following pic, I added to repo and beside there is not huge difference between git remote add vs git clone because I did git clone

init-issue

I feel you want me to make project QuestLists inside BizziQuest folder?

@skamansam
Copy link
Member Author

skamansam commented Dec 30, 2019

You mentioned creating a Rails app in the current directory. This is probably not the best practice and is more difficult than adding a git remote. You can put the git repo wherever you want, but the rails app should be the top directory in the repo. All you really need to do is issue the following commands:

gem install rails && rails new --webpack=vue quest_lists
cd quest_lists
git add remote origin https://github.com/BizziQuest/QuestLists.git
git checkout -b "1-init-rails-project"
git add .
git commit -m "initialized rails app"
git push origin

@KickButtowski80
Copy link
Contributor

first, I realized I had a rails project inside my folder so when I deleted them I was able to create new rails app.
I was able to create rails app by runningrails new quest_lists --webpack=vue
and git remote add origin https://github.com/BizziQuest/QuestLists.git
I commit everything and git push origin as well.
FYI, I never created any project this way :)

Initialize App automation moved this from In progress to Done Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants