eripheebs / eco-nnect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Eco-nnect

spiking the frontend to play around and learn react pls do not judge :p

#To do:

  1. Rails backend
  2. refer to issues for breakdown of tasks

####To run the app locally: Open terminal:

$ git clone https://github.com/eripheebs/eco-nnect.git
$ cd eco-nnect
$ cd react_frontend
$ npm install
$ npm run devserve

In another terminal tab:

$ cd ..
$ cd backend
$ bin/rake db:create
$ bin/rake db:migrate
$ bin/rake db:seed
$ export AUTH0_CLIENT_ID = (your client id here)
$ export AUTH0_CLIENT_SECRET = (your client secret key here)
$ rails s -p 3001
$ open http://localhost:8080

####To run tests: Jest tests:

$ cd frontend
$ jest

Rspec tests:

$ bin/rake db:create RAILS_ENV=test
$ bin/rake db:migrate RAILS_ENV=test
$ cd backend
$ rspec

About


Languages

Language:Ruby 53.0%Language:JavaScript 32.6%Language:CSS 8.6%Language:HTML 5.3%Language:CoffeeScript 0.4%