Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

admission-curriculum

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

admission-curriculum

Challenges used by the admission process @Laboratoria

  • 4.0.0-alpha.5
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 13 Jan 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc