This project is the result of a coding challenge I have participated. The project consists of a webpage using the following technologies:
- ReactJS + Typescript on the front-end.
- NodeJS + Express + Typescript on the server-side.
- MongoDB for database management.
This website consists of mainly four pages, each one consuming a different external API.
-
The first page takes data from 'https://randomuser.me/' and displays the users in a paginated fashion.
-
Another page displays a random dog from 'https://random.dog/'.
-
On the next page, the user provides a HTTP code and get a corresponding cat image from 'https://http.cat/'.
-
The fourth is a CRUD app displaying a list of clients and their info.
This video shows the responsive design implemented on the website.
Assuming you already have installed on your machine the package manage npm and mongodb, do the following:
- Clone this repo.
- Change directory to "server" folder inside root.
- Execute "npm install"
- Execute "npm start" to initialize the local server on port 5000.
- [optional] Locate the filex 'index.ts' inside the server folder, uncomment the commented lines of code and save the file. This will restart the server and add dummy clients to the client list in the mongoDB database.
- Change directory to "client" folder inside root.
- Execute "npm install".
- Execute "npm start". Your browser should open a new tab at localhost:3000. Voilá!
- The login credentials are:
Username: desafiosharenergy Password: sh@r3n3rgy