Moved repository to https://gitlab.com/YsonM/ts_hacker_news
- structure based on express generator, check https://expressjs.com/en/starter/generator.html
- the start of the application is maintained by means of a js file without an extension, as the documentation suggests
- node js 16 or higher (https://nodejs.org/en/)
npm install
-
Clone the
.env.example
file and rename it to.env
-
Change environment variables
// important, it is only possible to start the background tasks (cron) through the environment variable,
// if this function is not needed, keep the value false
ACTIVE_SCHEDULE_TASKS=true
docker-compose up -d
npm run build:clean
- you must compile the application before using this command (step 4)
npm run migration:run
- in reload mode with changes (option 1)
npm run dev
- start the app with node (option 2)
npm run start
- send a network request, to the endpoint ({domain_here}/articles/seed)
http://localhost:3000/articles/seed - GET
select import in postman and select file located in (rootDir = repository base folder, In case of not modifying it, it would be ts_hacker_news)
rootDir/docs/express_hacker_news.postman_collection.json
- verify correct installation by running the tests
npm run test
- run tests in parallel
npm run test:parallel
- checking coverage
npm run test:coverage
- check encoding rules
npm run lint
- just check code
npm run format:check
- format code
npm run format:check