Socket
Socket
Sign inDemoInstall

admission-curriculum

Package Overview
Dependencies
182
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    admission-curriculum

Challenges used by the admission process @Laboratoria


Version published
Maintainers
1
Created

Readme

Source

Admission Curriculum

Integration tests


Setup

Note: Before going ahead, have a look at the admission documentation about typeform.

  1. Copy .typeformrc.example file to .typeformrc
  2. Set the typeform ids in .typeformrc carefully

The Typeform ids required are:

  "TYPEFORM_ID_BASE_LINE_QUESTIONNAIRE": "your-typeformid",
  "TYPEFORM_ID_TESTS_READING": "your-typeformid",
  "TYPEFORM_ID_TESTS_LOGIC": "your-typeformid",
  "TYPEFORM_ID_TESTS_PERSONALITY": "your-typeformid",

Heads-up: There are two main keys: es-ES, pt-BR, for each available language, along with three sub-keys: development, staging and production, for each possible environment. Make sure you are setting up the right keys with the right values.


Build 🏗

You can pass 2 arguments: --env, --locale

  • --env development | staging | production
  • --locale es-ES | pt-BR, default es-ES

The built topic will be stored in build/* folder

Example:

npm run build -- --env=production --locale=pt-BR # --> build/admission-pt.json

Testing 🧪

  • To validate the course content npm run validate
  • To run markdown linter npm run mdlint
  • To run tests and pretest npm run test

Upload 🚀

Once the topic is built, the next step is creating a new topic by making a request to Laboratoria API so that the new topic is available to be used by any cohort. You can use any HTTP Client tool, e.g. Postman, Insomnia, or if you love cli tools 🤟, I recommend using httpie

Note: The endpoint to create new topics requires authentication as well as the admin role. So, you should get an auth token before.

Example using httpie

# Authenticate to get a JWT (Json Web Token)
http POST http://api.laboratoria.la/auth email=myemail@testing.com password=xxxxxxx
# Upload a built topic
 http POST https://api.laboratoria.la/topics 'Authorization:Bearer <token>' < ./build/admission.json

FAQs

Last updated on 13 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc