oc login
to a cluster- create / enter a
project
- run
./deploy.sh
- follow the screenshots to create persistent storage (optional)
- (topology -> rightclick -> add storage -> create new claim -> mount path =
/items
)
- (topology -> rightclick -> add storage -> create new claim -> mount path =
- visit the public URL from your browser :)
- (networking -> routes -> Name
todo
Locationurl
)
- (networking -> routes -> Name
Screenshots for steps on storage & finding routes tab:
- Route is here:
(on bash shell execute start.sh
)
Terminal 1
cd backend
npm run start
Terminal 2
cd frontend
yarn start
(If browser doesn't open automatically go to http://localhost:8080)
A TODO app using React
Todo app using react & typescript with the features:
Use React & typescript
Use Functional components
No need to persist data
Simple CRUD operations on tasks
Allow filtering of tasks(active, completed, all)
Show count
Clear all button
Deploy on OCP using images(Dockerfile)
Deploy from GitHub using S2i
Backend
Backend pod - POST endpoint
Any DB