An open API service indexing awesome lists of open source software.

https://github.com/onukwilip/capital-placement-task-1

This is the repository which holds the first task assigned to me by Capital placement
https://github.com/onukwilip/capital-placement-task-1

capitalplacement

Last synced: about 1 month ago
JSON representation

This is the repository which holds the first task assigned to me by Capital placement

Awesome Lists containing this project

README

        

# CAPITAL PLACEMENT TASK 1

This is the first task (Task 1) of the interview assessment assigned to me by captial placement for the role of a frontend developer. The project was developed using the following tools:

- React Js
- Typescript
- SCSS
- Material UI
- Docker

## HOW TO USE

- **Run the project directly on your system**:

> To run this project directly on your system you will need [**Node.Js**](https://nodejs.org/en/download) version **16.15.0** or higher

- Run `git clone https://github.com/onukwilip/capital-placement-task-1.git`
- Run `npm i -f` (To install all dependencies)
- Run `npm run build` (To create the production build)
- Run `npm i -g @stoplight/prism-cli` (To install Prism)
- Run `npx prism mock ./prism-demo.yaml` (Start the prism server to mock the API endpoints)
- Run `npm i -g serve` (Install the library responsible for serving the production build)
- Run `npx serve -s build` (Serve the application on http://localhost:3000)

**N.B: Make sure to fill the following environmental variables with the URL of the Prism mock server when running the project locally: `API_GET_ENDPOINT`, `API_PUT_ENDPOINT`**

- **Run the project using Docker**:

> To run this project as a container you will need [**Docker**](https://www.docker.com/products/docker-desktop/)

- Run `git clone https://github.com/onukwilip/capital-placement-task-1.git`
- Run `docker build -t cp-task-1 .`
- Run `docker run -p 3000:3000 -rm -it cp-task-1`
- Run `docker build -t d-prism . -f .\prism.Dockerfile`
- Run `docker run -p 4010:4010 --rm d-prism`