I'm an elixir noob migrating from rails. I cant start the server. I started a --no-html --no-brunch project. I done nothing but start the project and gave the below error on the page
Phoenix.Router.NoRouteError
atGET /
no route found forGET /
(PhoenixReactChat.Router
)
and it shows my standard router.ex on the page
defmodule PhoenixReactChat.Router do .
use PhoenixReactChat.Web, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", PhoenixReactChat do
pipe_through :api
end
end
Using my Rails mind I'd add something referring to the root like root "home#index" in this file right? How would I go about doing this? Also the documentation doesn't include any lines of code like this to get the server started.
edit: That said I'm also following an old tutorial for my project.(https://medium.com/@benhansen/lets-build-a-slack-clone-with-elixir-phoenix-and-react-part-1-project-setup-3252ae780a1) some further digging tells me this error is to be expected due to the set up. (https://developer.epages.com/blog/2017/02/09/programming-beyond-the-comfort-zone-the-phoenix-framework.html)