This is a simple Svelte
application for storing and restoring Personal information in IndexedDB.
Capabilities:
- Person information contains picture, Images(Png/Jpeg) are stored via Base64 encoding
- IndexedDB
async
API implemented(limited to project needs) - Each field can be approved or rejected separately
- All component used in this project created from scratch
- Node
- yarn/npm
Clone the repository:
git clone https://github.com/nima-dvlp/person-verification.git
Install the dependencies...
cd person-verification
yarn install
npm install
...then start Rollup:
npm run dev
or with yarn
yarn run dev
Navigate to localhost:5000. You should see the app running.
By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv
commands in package.json to include the option --host 0.0.0.0
.
To create an optimised version of the app:
npm run build
You can run the newly built app with npm run start
. This uses sirv, which is included in your package.json's dependencies
so that the app will work when you deploy to platforms like Heroku.
For test run:
yarn run test
or with npm:
npm run test
With Vercel
Install vercel
if you haven't already:
npm install -g vercel
Then, from within your project folder:
cd public
vercel deploy --name my-project
With surge
Install surge
if you haven't already:
npm install -g surge
Then, from within your project folder:
npm run build
surge public my-project.surge.sh