DoWell Random Graph is a simple web UI that provides two functionalities: Field random points and Excel random points. This task was assigned to me as part of my application requirements for the role of Frontend Web Devloper at DoWellUXLab.
Before you can be able to run the application, you'll have to clone the repository by running the following commands.
git clone [email protected]:Victor-Onah/dowell-random-graph.git
Note: You must have git installed on your local machine, else the command won't work.
To start the application locally, all you need do is navigate to the root of the folder which you have cloned using the terminal.
cd /path/to/dowell-random-graph
Next you have to install the applications dependencies. You can do that by running the following command.
npm install
Next, you start the development server.
To start the development, sever, run the command below.
npm run dev
That's all for running the application.
The project has been setup in such a way that you can deploy to GitHub pages from your terminal or through the GitHub actions workflow.
The workflow file is located at .github/workflows/deploy.yml
.
I recommend using the terminal as it is straight forward and easier. I have outlined the following steps for easy deployment on your own GitHub account.
- Open the
package.json
file (it is at the root of the application). Inside it you should find the following code snippet.
}
"name": "dowell-random-graph",
"private": true,
"version": "0.0.0",
"type": "module",
"homepage": "https://<your-github-username>.github.io/<your-repository-name>/",
/* other configs */
}
- Replace the existing username (victor-onah) with yours and the existing repository name (dowell-random-graph) with your new repository name.
- Finally, save and run the following command
npm run deploy
This will build and deploy the application to GitHub pages under the URL specified in the homepage
property of the package.json
.
Thank you.