Skip to content

RoR API and React frontend with Redux and React-router

Notifications You must be signed in to change notification settings

KhrystynaKolisnyk/ant-eater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

Ant-eater

social network


[React allows developers to create large web applications that use data which can change over time, without reloading the page. Its main goal is to be fast, simple and scalable. React processes only user interface in applications.]

Preparation

App uses PostgreSQL. You need change config in database.yml or create new pg_user:

$ sudo -u postgres createuser -s rails_user
$ sudo -u postgres psql
in postgres=#
$ \password rails_user
$ password
$ password
$ \q

Install

1.Open terminal window in backend folder and run:

a)bundle install
b)rake db:setup
c)rails s

2.Open next terminal window in frontend folder and run:

a) npm install `or` sudo npm install
b) npm start

3.Wait to start all servers

4.Visit http://localhost:8080

5.Create new user or login as demo-user:

[email: my_email@exemple.com, password: Truepass1]


Run test


Rails test

[controllers, models, mailer, helpers test]

  • Open terminal window in backend folder and run: rails test test

Some react classes test

[Jest]

  • Open terminal window in frontend folder and run: npm test

Integration test

[Protractor, Chrome, Jasmine]

  • Open terminal window in backend folder and run: rails s
  • Open next terminal window in frontend folder and run: npm start
  • Open next terminal window in frontend folder again and run: npm run integration

If test don't run, update your webDriver: run ./node_modules/protractor/bin/webdriver-manager update and webdriver-manager update.

About

RoR API and React frontend with Redux and React-router

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published