Skip to content

ChristianTracy/react-favorites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Favorites movies

STEPS

ENVIRONMENT VARIABLES

  • Create .env file in the root folder.
  • Add the following values:
REACT_APP_API_KEY=[YOUR_omdbapi_KEY]
REACT_APP_SERVER_URL=http://www.omdbapi.com

RUN APP

npm start

/LOGIN

After run npm start a server in the port 3001 should be available. To use this mock login response make a POST method to /login.

POST /login

{
	"username": "[email protected]",
	"password": "mypassword"
}

RESPONSE

{
    "username": "[email protected]",
    "name": "Name",
    "lastname": "LastName",
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

About

Example APP with ReactJS. The users should be able to add their favorites movies to a collection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published