0

I made a Vue js app using d3.js and a couple of JSON files. I now need to deploy my code to a public website to be viewed 24/7. I understand nobody is going to do this for me but if someone couple points me in the right direction that would be great. I tried using GitHub pages and google sites but those dont allow for javascript libraries and npm packages. I linked my GitHub repository so yall can view the code. Thank you for any help. https://github.com/BrennanAdams/BrennanAdams.github.io.git

2 Answers 2

1

You can deploy your site by using firebase Make sure you install firebase tools

npm install -g firebase-tools

Check You're logged in firebase by

firebase login

cd into your vue project’s root directory,

Run npm run build in your root directory so that Vue builds your project for production. This will create a dist folder with everything you need to deploy… we’ll point Firebase to the dist folder in a sec.

Run the command-

firebase init

Select your the hosting option, and select the appropriate firebase project.

Run

firebase deploy

Here we go you can view your site in public 😀

Sign up to request clarification or add additional context in comments.

1 Comment

First you need to create a project in the firebase application, then config into you project, then go to project directory, then use these comments. If it is working please " upvote and make it as a correct answer" .
1

You can also deploy your site in Netlify

I hope you will get step by step process from these two docs

1 Comment

Here is freeCodeCamp tutorial

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.