# | Description | Endpoint | Request Body | Request Header |
---|---|---|---|---|
1 | Get all user Emails | /all |
email, password, encType, serverType | NA |
2 | Get a Specific user Email | /one/:id |
encType, serverType | userKey |
--- Prequisites: Have node, npm
installed on your local machine
- Clone the repository
- Cd into the project
- Run
npm install
to install all packages - Create you local
.env
file and Add Environment variables as listed on the.env.sample
file (It is compulsory that each of the keys have an exact length of 16) - Start the project with
npm run dev
to run in development mode: checkoutlocalhost:4000
- To run the production version of the application run
npm run start
: checkoutlocalhost:4000
- The available endpoints of the application are documented above
-- Prerequisites: docker, docker-compose
- Clone the repository
- Cd into the application
- Create a local
.env
file and Add Environment variables as listed on the.env.sample
file (YourBASE_URL
should be:http://localhost:9000/
(check the docker-compose.yml file to see why)): i. It is compulsory that each of the keys (i.e AES_KEY & IV_KEY) have an exact length of 16 - Run
docker compose up
ordocker-compose up
- Open your browser and checkout
http://localhost:9000
- To shut down the application
i.
CMD + C
ii.docker compose down
ordocker-compose down