React client to fetch CRUD operations from bookmarks-server repo
Technologies used: HTML, CSS, Javascript, React, React-Router, Fetch API
Complete the following steps to start a new project (NEW-PROJECT-NAME):
- Clone this repository to your local machine
git clone https://github.com/rodrigohervas/bookmarks---client.git NEW-PROJECT-NAME
cd
into the cloned repository- Make a fresh start of the git history for this project with
rm -rf .git && git init
- Make sure that the .gitignore file is encoded as 'UTF-8'
- Install the node dependencies
npm install
- Add an
.env
file with the following content:- REACT_APP_API_ENDPOINT=[bookmarks_api_url]
- REACT_APP_API_KEY=[your_api_key_here]
- Note: The endpoint url and api key depends on what you generate in: https://github.com/rodrigohervas/bookmarks-server.git
- Edit the contents of the
package.json
to use NEW-PROJECT-NAME instead of"name": "bookmarks-client",
Start the application npm start