Visitor Entry System API
To be added later via heroku docker deploy
docker compose up -d
npm install
- Create a new database user set mysql authentication type to 'Native MySQL authentication'
- Create a new database and give all permissions to the previously created user
mysql -u <user_name> -p <database_name> < ./schemas/dummy.sql
- Create a file named .env and edit it
touch .env
nano .env
- Put the following contents to the file and save it
DB_HOST=localhost
DB_PORT=3306
DB_TYPE=mysql
DB_USER=<user_name>
DB_PASS=<database_password>
DB_DBASE=<database_name>
JWT_ACCESS_TOKEN_SECRET=rANd0m34673
JWT_REFRESH_TOKEN_SECRET=RanD0M65749
npm start
- Import Postman REST API test project to Postman from:
./tests/codelogicx-ves-api.postman_collection.json
- Now you are ready to test the API from Postman
- All the required API keys and test parameters are with in the Postman project
- If required to check user authentication then use credentials given below:
{
"username": "admin",
"password": "admin@123"
}
Here is a relationship diagram of various database tables: