Giter Site home page Giter Site logo

dimong5 / runit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hexlet-rus/runit

0.0 0.0 0.0 5.42 MB

Online Editor Form Embedding

Home Page: https://runit.hexlet.ru/

License: Other

JavaScript 60.79% TypeScript 31.36% CSS 6.70% Makefile 0.46% HTML 0.12% Pug 0.54% SCSS 0.03% Procfile 0.02%

runit's Introduction

Runit

On Push

About

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 Telegram.

System requirements

  • node >= 18
  • Heroku CLI
  • PostgreSQL

Installation

make setup

Running the app

make start

http://localhost:3000

Run tests

Unit tests

make test

e2e tests

make test-e2e

Deploy to Render.com

To deploy to Render.com do the following

  1. Create a Postgres database. After preparing it, copy Internal Database URL
  2. Create Web Service, select your fork.
  3. Name - it is better to use a prefix with your nickname. For example fey-runit.
  4. Region - any, you can use Frankfurt (EU Central)
  5. 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
  6. Root Directory - leave blank
  7. Runtime - Node
  8. Build Command - make install build.
  9. Start Command - make db-migrate start-prod.
  10. You can choose any plan, free is enough.
  11. 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 URL
  • NODE_ENV - production
  • SECRET_KEY_JWT - any string, you can generate a random string or insert simpleDevKey for simplicity
  • TRANSPORT_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 be smtp://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.

How to help

Look at the list of issues, choose an interesting task, write to the issue to say you would like to work on the task.


Hexlet Rus Ltd logo

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.

runit's People

Contributors

abra19 avatar acidmaksim avatar akssshh avatar amshkv avatar anastasiakv avatar antonkrupin avatar ashikov avatar asya-kamaeva avatar denikeev avatar dependabot[bot] avatar difuster avatar dzencot avatar egorulitin avatar fey avatar funkicide avatar js-ninjann avatar kaamosdao avatar larendsd avatar mikryam avatar philologistiscodinghere avatar rinat-lucky avatar seregad544 avatar sgmdlt avatar sleepy-corpse avatar takaiva avatar tigp avatar tysky avatar userao avatar wenn911 avatar yuliamisc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.