A password storage application developed with node.js.
In this application the technologies below was used:
- Node.js
- Express
- SQLite
Firstly you can clone by using the command below:
git clone https://github.com/BrunoUemura/password-storage.git
Or download the zip file directly from Github and unzip it.
- To install the dependencies
npm install
- To create the database
npm run knex:migrate
- To run the project, make sure that the database was created in ./src/database/database.sqlite3 then run the command
npm start
It is important to run the command npm run knex:migrate
to create the database before running the app.
Then you can send requests to the following routes:
GET
: http://localhost:4000/notesGET
: http://localhost:4000/decodednotesPOST
: http://localhost:4000/notesPUT
: http://localhost:4000/notes/:idDELETE
: http://localhost:4000/notes/:id
Route: http://localhost:4000/notes
[
{
"id": 1,
"note": "Rmlyc3Qgbm90ZQ==",
"created_at": "2021-04-18 19:02:45",
"updated_at": "2021-04-18 19:02:45"
},
{
"id": 2,
"note": "U2Vjb25kIG5vdGU=",
"created_at": "2021-04-18 19:07:29",
"updated_at": "2021-04-18 19:07:29"
}
]
Route: http://localhost:4000/decodednotes
{
"notes": [
{
"note": "First note"
},
{
"note": "Second note"
}
]
}
Route: http://localhost:4000/notes
{
"note": "Third note"
}
Route: http://localhost:4000/notes/2
{
"note": "Second note updated"
}