https://github.com/Zimtir/SENT-template
-
Create a repository based on SENT-template
# for Rollup npx degit "Zimtir/SENT-template" my-app
-
Install packages
npm run install:dev
- Install only required packages for simple development (no test support and other tools)npm run install:dev:full
- Install all packagesnpm run install:prod:full
- Install all packages to execute tests, storybook and so on at production environmentnpm run install:prod
- Install only required packages to run production
npm run test:dev
ornpm run test:prod
- Execute all tests- Note: setup
IS_CODE_COVERAGE_ENABLED='true'
in environment variables to print at output a coverage by tests
-
Start application
npm run dev # or npm run start
-
Navigate to Swagger url (http://localhost:3000/api/swagger)
-
Application
- The running of bundles in container
- Note: Sure to execute the build before
npm run build
docker-cmpose up sent-template
-
Application
- The running of application in development mode inside a container
docker-compose -f docker-compose.dev.yml up web
-
Storybook
- Demonstrates all components that can be used in development
docker-compose -f docker-compose.dev.yml up storybook
-
Nginx
- The hosting of bundles through Nginx
- Note: Sure to execute the build before
npm run build
docker-compose -f docker-compose.dev.yml up nginx
-
Tests
- Allows to execute all tests in the container
docker-compose -f docker-compose.dev.yml up test