Skip to content
المشاريع

heroku/nodejs-getting-started

عرض على GitHub

حول

Getting Started with Node.js on Heroku

التعلّم والتعليم

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
؜-١
خلال شهر
+١

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

nodejs-getting-started

A barebones Node.js app using Express.

This application supports the tutorials for both the Cedar and Fir generations of the Heroku platform. You can check them out here:

Running Locally

Make sure you have Node.js and the Heroku CLI installed.

$ git clone https://github.com/heroku/nodejs-getting-started.git # or clone your own fork
$ cd nodejs-getting-started
$ npm install
$ npm start

Your app should now be running on localhost:5006.

Deploying to Heroku

Using resources for this example app counts towards your usage. Delete your app and database as soon as you are done experimenting to control costs.

Deploy on Cedar

By default, apps use Eco dynos on Cedar if you are subscribed to Eco. Otherwise, it defaults to Basic dynos. The Eco dynos plan is shared across all Eco dynos in your account and is recommended if you plan on deploying many small apps to Heroku. Learn more about our low-cost plans here.

Eligible students can apply for platform credits through our new Heroku for GitHub Students program.

$ heroku create
$ git push heroku main
$ heroku open

Deploy on Fir

By default, apps on Fir use 1X-Classic dynos. To create an app on Fir you'll need to create a private space first.

$ heroku spaces:create <space-name> --team <team-name> --generation fir
$ heroku create --space <space-name>
$ git push heroku main
$ heroku open

Documentation

For more information about using Node.js on Heroku, see these Dev Center articles:

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…