This is a simple CRUD (Create, Read, Update, Delete) application for managing notes, built with Node.js, TypeScript, and Firebase as the database.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js
- TypeScript
- Firebase account
- Clone the repository
git clone https://github.com/freidev/note-api-node.git
- Navigate into the project directory
cd note-api-node
- Install the dependencies
npm install
- Set up Firebase
- Create a Firebase project in the Firebase console.
- Generate a private key file for your service account.
- Place the service account key file in your project directory and rename it to
firebase-service-account.json
.
- Compile TypeScript to JavaScript
tsc
- Start the server
npm start
This application provides the following endpoints:
GET /notes
: Fetch all notes from FirebasePOST /notes
: Create a new note in FirebaseGET /notes/:id
: Fetch a single note by ID from FirebasePUT /notes/:id
: Update a note by ID in FirebaseDELETE /notes/:id
: Delete a note by ID from Firebase
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details