spiking the frontend to play around and learn react pls do not judge :p
#To do:
- Rails backend
- 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