Skip to content

ikenami/website_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website Server

Serves the build of a website (in this case, a compiled Vue website) on Heroku.

In this project we used

Run

# install dependencies
npm install

# if you have nodemon installed
# serve at localhost:5000
nodemon server

# if you don't have nodemon installed
# serve at localhost:5000
node server

How to use

The purpose of this project was to create a way to host the Deck Royale on the Heroku website.

On the Deck Royale {which is a Vue project} we did:

npm run build

That created a dist folder with the project compiled in a otimized way by Vue.

Next, we copied the index.html and the dist folder from our Deck Royale project, to our current project (yes, this one), more specificaly to the app/public folder. And we configured our Express so he would know where are the files he needs to run the application.

Now we can run this project with:

# If you have nodemon installed
# Serve at localhost:5000
> nodemon server

# If you don't have nodemon installed
# Serve at localhost:5000
> node server

About

Serves a compiled website on Heroku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published