Code Monkey home page Code Monkey logo

pnc-api's Introduction

301 - Transferred to the official organization

pnc-api

The REST Apis of the Preben Norwegian Community software

Project purpose

These are the REST Apis of the Preben Norwegian Community software. They offer a way to handle the groups for each language course and to view and handle students enrollments in each group.

How was it made

It was made with Node.js and Express. The software interfaces with a MongoDB database and with the LearnWorlds APIs.

How to use it

There is a Docker image that is automatically published with a Github action. For the usage, the only other important related thing is the .env.example file that shows the parameters that must be configured.

Another important thing is the initial admin user, to create on just look at the scripts folder.

For development

To run it locally, just run npm install for installing the dependencies, npm run serve to run a local server. All the other scripts are written in the package.json.

It is also important knowing the branches organization:

  • pre: it is a branch used just for development and can be modified without caring too much. Pushes must be done only on this branch.
  • dev: it is a branch that has a github action to create and push the prebenorwegian/pnc-api-dev docker image on dockerhub. Merges must be done only from the pre branch.
  • main: it is a branch that has a github action to create and push the prebenorwegian/pnc-api docker image on dockerhub. Merges must be done only from the dev branch.

The two docker images (main and dev) exist because first ones wants to test the changes on dev and only after pushing them in prod.

The SDK

This repo contains also the sdk folder, containing the api client published on npm and used by the frontends to interface to the APIs.

pnc-api's People

Contributors

euberdeveloper avatar

Watchers

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