Skip to content

alejoescobar/react-calories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 

Repository files navigation

Calories Project

General Remarks

This project is built using rails-api as the backend, using a postgresql database. And a boilerplate of react as the client.

It is currently reachable online at this url.

Running locally

The project can be run locally following these steps in two separate terminal tabs:

Inside the rails folder (calories_rails_api):

  1. $ bundle install
  2. $ rake db:setup
  3. $ rails test
  4. $ rails s -p 3001

Inside the react folder (calories_react_client):

  1. $ npm install
  2. $ npm test
  3. $ npm start

The result should be the rails server and the node server running. In your browser you can now navigate to localhost:3000 and see the application live locally.

Postman client

Additionally from the tests done in the rails api, the endpoints can be tested using the following postman client Run in Postman.

To use the postman client you first need to obtain an auth_token using the Sessions#create endpoint. Once you have it, you can pass it in the Authorization header in every request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published