npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

reach17

v1.0.0

Published

API per catalogare i corsi forniti da reach17

Downloads

5

Readme

Reach 17

Node.Js Project by Giacomo Giovannetti

REST API for an education provider

:bookmark_tabs: Index

:floppy_disk: About the project

The scope of this project was to create an API to organize and recall the courses provided by the name of the course , the course type or the university in which it takes place. The API is based on 3 Schemas:

  • Course type -> defines the type of the course
  • University -> contains the name of the University
  • Course -> data of the course : name , type, universities that provide it.

Using the correct endpoints you can Create, Read, Update or Delete (CRUD). Using queries is possible to search through the courses.

For this course were used Node.Js with Express.Js framework and MongoDB as database.

:inbox_tray: Installation

In order to install the API Node.Js is required and you may need an online Database, i suggest MongoDB Atlas.

  • You don't have Node.Js ? No problem, download it here: Node.Js.

  • Need an online Database ? Login of create an account on MongoDB Atlas , create your database, go to Connect -> Drivers and save the connection string provided we will need it later.

After those steps you are all set up

1 - Clone the repository

git clone https://github.com/GiacomoGiovannetti/Reach17.git

2 - Install the dependencies

npm install

3 - Start the server

npm start

4 - Connect to your MongoDB

If it doesn't exist create a .env file and insert the environment variables, there is a .env_example to help you do it.

5 - Test it with a client

You can use something like Postman(download it here!) or Insomnia, to begin to use the API, simply by typing:

localhost:8081/desiredEndpoint

:mag: API documentation

Course Type

| Method | Endpoint | Result | | ------ | -------- | ------ | | POST| /api/coursetype/ | create a new course type | | PATCH | /api/coursetype/:id | modify a course type | | DELETE | /api/coursetype/:id | delete a course type | | GET | /api/coursetype/ | get all course types | | GET | /api/coursetype/:id | get a single course type |

University

| Method | Endpoint | Result | | ------ | -------- | ------ | | POST| /api/university/ | create a new university | | PATCH | /api/university/:id | modify a university | | DELETE | /api/university/:id | delete a university | | GET | /api/university/ | get all universities | | GET | /api/university/:id | get a single university |

Course

| Method | Endpoint | Result | | ------ | -------- | ------ | | POST| /api/course/ | create a new course | | PATCH | /api/course/:id | modify a course | | DELETE | /api/course/:id | delete a course | | GET | /api/course/ | get all courses | | GET | /api/course/:id | get a single course | | GET | /api/course/pertype/:typeId | get all courses of a type | | GET | /api/course/peruniversity/:universityId | get all courses of a university | | GET | /api/course/pertypeanduniversity/:typeId/:universityId | get all courses of a type in a university |

:books: Libraries

:page_facing_up: License

:warning: Issues

At the moment the project should run without problems. In case you find some issues let me know!

:email: Contact me