Runit is an environment for writing and executing code that will be actively used on all Hexlet Rus Ltd platforms. The closest counterpart is the repl.it service. The backend is developed in NestJS and TypeScript, the frontend uses React.
Tasks:
- Participation in service development
Tasks can be discussed in the #hexlet-volunteers channel in the Slack community.
- node >= 18
- Heroku CLI
- PostgreSQL
make setup
make start
make test
make test-e2e
To deploy to Render.com do the following
- Create a Postgres database. After preparing it, copy Internal Database URL
- Create Web Service, select your fork.
- Name - it is better to use a prefix with your nickname. For example fey-runit.
- Region - any, you can use Frankfurt (EU Central)
- Branch - from which the application will be deployed. You can use
main
for starters. In the future, use the branch in which you want to demonstrate the changes - Root Directory - leave blank
- Runtime - Node
- Build Command -
make install build
. - Start Command -
make db-migrate start-prod
. - You can choose any plan, free is enough.
- Set environment variables. Click on Advanced and *Add Environment Variable
The following variables will be needed.
DATABASE_URL
- this is the URL you copied earlier - Internal Database URLNODE_ENV
-production
SECRET_KEY_JWT
- any string, you can generate a random string or insertsimpleDevKey
for simplicityTRANSPORT_MAILER_URL
This should be the URL of the connection string of the mail sender. You can use the Mailtrap service for tests. An example url would besmtp://login:[email protected]:2525
.
Click on Create Web Service and watch the Deployment and logs. If there are problems, ask questions here. Check first that there is no similar open topic.
Translated with www.DeepL.com/Translator (free version)
Look at the list of issues, choose an interesting task, write to the issue to say you would like to work on the task.
This repository is created and maintained by the team and the community of Hexlet Rus Ltd, an educational project. Read more about Hexlet.
See most active contributors on hexlet-friends.