Example CRUD API for API Fest'22. See Pull Requests for chapter 2 and 3

Overview

Getting started

npm install - get all package dependencies

Development

npm run dev - starts dev server that watches for changes in js code and restarts automatically

*Note: need to restart server manually if you change schema.yaml

Deployment

Ensure this command runs when your server starts on your host:

npm start

Here are some free hosting services for Node apps:

You might also like...

A CRUD made with NodeJS. It's a book directory where you can see the books, add new ones, update them, or even delete .

Book-Directory-NodeJS A CRUD made with NodeJS. It's a book directory where you can see the books, add new ones, update them, or even delete . What I u

May 13, 2022

Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

May 18, 2022

Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

May 3, 2022

Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

Jan 3, 2023

Angular 14 Firebase CRUD with Realtime Database - AngularFireDatabase Object and List example: create, retrieve, update, delete

Angular 14 Firebase CRUD with Realtime Database - AngularFireDatabase Object and List example: create, retrieve, update, delete

Angular 14 Firebase CRUD example with Realtime DataBase | AngularFireDatabase Build Angular 14 CRUD example with Firebase Realtime Database that uses

Dec 26, 2022

Example-browserstack-reporting - This repository contains an example of running Selenium tests and reporting BrowserStack test results, including full CI pipeline integration.

BrowserStack reporting and Selenium test result example This repository contains an example of running Selenium tests and reporting BrowserStack test

Jan 1, 2022

Example auto-generated OpenAPI client library and an accompanying example Angular app.

To utilize this demo Head into petstore_frontend\petes_pets Run npm install Go to frontend_client_lib\out Run npm install Head back into petstore_fron

Jan 21, 2022

API to pull Github information with ui widget.

API to pull Github information with ui widget.

Github UI Widget Demos Ahmet ilhan Github Profile Card Ahmet ilhan Github Repositories Card Ahmet ilhan Github Selected Repo Commits Github UI Widget

Nov 25, 2022
Comments
  • Chapter 3 - Persisting Data

    Chapter 3 - Persisting Data

    To prevent losing all of our restaurants every time our server restarts, and to allow our API to scale to be used by multiple clients at once, we need to add a real database.

    For this example, we added MongoDB. However, you can use any type of database you want (PostgreSQL, MySQL etc).

    IMPORTANT - handling secrets When dealing with databases, we almost always have secrets we don't want to share with the public that give access to our data. To hide secrets, such as the database connection URI, you will need to make a local file at your project root called .env. This file is explicitly ignored from git tracking because we added it to the .gitignore file. That means the contents of the .env file will not show up anywhere you publish your code, like GitHub. Secret's safe!

    The variables defined in your .env will be local only to your computer. When you go to deploy your API to the public internet, your hosting service will let you define your environment variables secretly and securely from their dashboard.

    DO NOT MERGE 
    opened by clairefro 0
  • Chapter 2 - Validating Requests

    Chapter 2 - Validating Requests

    We need to make sure our API returns a 400 Bad Request error if a client makes a crazy request that doesn't match our schema, like:

    POST /restaurants
    with a Body of { "someCrazyProperty": "nonsense"}
    

    We can enforce our OpenAPI schema on our fastify API using the plugin library fastify-openapi-glue

    This library identifies each of our paths by their operationId in our schema.yaml, and converts them into fastify routes with the correct request methods. Better yet, the generated routes check each request to that route and make sure it fits our schema, or else it sends an error to the client!

    API First makes life easy :)

    DO NOT MERGE 
    opened by clairefro 0
The new website for Microsoft Learn Student Chapter,TIET

Guidelines Steps for Contribution Fork this repository and clone it on your local machine. Use npm i to install all the dependencies. The folders for

Microsoft Learn Student Chapter, TIET 8 Oct 6, 2022
Automate adding issues and pull requests to GitHub projects (beta)

actions/add-to-project Use this action to automatically add the current issue or pull request to a GitHub project. Note that this is for GitHub projec

GitHub Actions 293 Jan 3, 2023
Tool for GitHub/GitLab to keep Repositories/Projects you are interested in and their Pull/Merge Requests in desktop Tray Menu

Tool for GitHub/GitLab to keep Repositories/Projects you are interested in and their Pull/Merge Requests in desktop Tray Menu. More info in User Guide.

Oleksii Bilyk 5 Jul 31, 2022
Add a table of contents to the sidebar of your GitHub issues and pull requests.

github-sidebar-jump-extension Getting started ?? Build locally Checkout the repository to your local machine Run npm install to install all required d

Jason Barry 11 Sep 7, 2022
Open! Inclusive! Collaborative! A community for enthusiasts exploring new technologies, working on innovative ideas and helping each other grow together. Open Issues, Raise ideas, Make Pull Requests!

About Us OplnCo previously known as Devstucom represents Open Inclusive Collaborative. We as a community help our fellow students build skills through

OpInCo Community 4 Oct 13, 2022
Add Read the Docs preview's link to Pull Requests

Add Read the Docs preview's link to Pull Requests GitHub Action that automatically edits Pull Requests' descriptions with a link to documentation's pr

Read the Docs 10 Nov 18, 2022
🛠️ Easily track & compare gas costs estimated by Foundry on each of your Pull Requests!

?? ??️ Foundry Gas Diff Reporter Easily compare gas reports generated by Foundry automatically on each of your Pull Requests! How it works Everytime s

Romain Milon 133 Dec 28, 2022
🔐 Protect your Smart Contract Proxy from storage collisions upon upgrading, by running this action in a CI on each of your Pull Requests!

?? ??️ Foundry Storage Upgrade Seatbelt Protect your Smart Contract Proxy from storage collisions upon upgrading, by running this action in a CI on ea

Romain Milon 11 Dec 24, 2022
Use this as learning repo on how to create successful pull requests.

Hacktoberfest 2022 Special We will be posting a problem daily at 10 AM related to languages like HTML/CSS, Python, C++ till 30th Oct. No need to get i

null 24 Dec 22, 2022
A CRUD made with NodeJS. It's a book directory where you can see the books, add new ones, update them, or even delete .

BOOK-DIRECTORY-NODEJS A CRUD made with NodeJS. It's a book directory where you can see the books, add new ones, update them, or even delete . What I u

null 6 May 18, 2022