Skip to content

lugnitdgp/Freemex2.0

Repository files navigation

Freemex 2.0

A stock market simulation using Node, Express in the backend and VanillaJs in frontend with EJS templating.

Requirements

Getting started

Deployment

Deploying on Heroku

  • Create a Heroku account at https://signup.heroku.com/login and download the Heroku CLI from https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up.

  • Login to Heroku using heroku login -i and providing your login credentials.

  • Change directory to the root of the project and define a Procfile, which would include explicit instructions to the start the application once it is deployed. In our case the Procfile would look something like this: web: npm start, which executes the command node index.js.

  • Deploy the app using the Heroku CLI tools by executing the following:

heroku create <project-name>
git push heroku master
  • To ensure atleast one instance of the app is running, run heroku ps:scale web=1.

  • Configure the environment variables by using heroku config:set <name of variable>=<value of variable>.

  • Set up a free MongoDB Atlas account at https://www.mongodb.com/cloud/atlas and configure the database URL.

  • To open the app on the browser, run heroku open.

  • If there are any errors, they can be inspected using heroku logs --tail.

Glimpses into the project

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published