# Save server ## Requirements - `nodejs` (recent) - `npm`/`yarn` ## Docs ### CLI - `node index register`: register user ### Endpoints - POST `/login` `body{, }` =\> `.token`: generate access token - POST `/text` `header{}` `body{}`: upload text data - POST `/file` `header{}` `files{}`: upload file - GET `/file/` `header{}` =\> ``: download file using token - GET `/saved` `header{}` =\> `{{}, {}}`: list all files/texts ## Installation - edit `.env` file: `$EDITOR .env` - install dependencies: `npm i` - register user: `node index register` - start server: `node index` - configure one of the clients