Skip to content

ziskandyigal/tic-tac-toe

Repository files navigation

README

DISCLAIMER - it's a pet project in order to get into rails ecosystem.

BE - rails as an api FE - Svelte SPA

Apply Svelte into Rails

add svelte to rails

rails webpacker:install:svelte

add js script to application.html.erb file

<%= javascript_pack_tag 'hello_svelte' %>

add controller and map it to the domain root route

rails g controller home index root 'home#index' add to routes.rb file

routes basic crud

/users

/tokens

/games

/comments

notes

  • disable crsf checks (for local development) add protect_from_forgery with: :null_session, only: [:create] to aaplication_controller.rb

TODO

  • add additional notes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published