OTPService is a simple project made by Roei Oanunu for a job interview. It contains a full service for OTP verification featuring otp generation from a weather api, sending emails and database sql and prunning.
🔍 The project's scope can be found here.
📋 An image of the task can be found here.
🌐 A live demo can be found here hosted by verart.
To run this service, you'll need npm installed on your computer, then you can use your command line as follow:
# Clone this repository (or download it manually)
$ git clone https://github.com/Tobies/OTPService
# Go into the repository
$ cd otpservice
# Go into client repository
$ cd client
# Install dependancies
$ npm install
# Setup enviroment variables
$ cp .env.example .env
! Edit the .env file. The value you will write there will be used later by the server.
# Run client in dev mode (It's simply faster)
$ npm run dev
Now you should be able to vist the website at https://localhost:3000
This section assumes you followed "How to use (Client)"
# Go navigate to server folder
$ cd ../server
# Install dependancies
$ npm install
# Setup enviroment variables
$ cp .env.example .env
! Edit the .env file. Make sure all the values are correct and that your weather api key is valid.
# Run the server
$ node index.js