HR-Management is a backend project for Technical Test Back End with Adonisjs.
Make sure you have installed all of the following prerequisites on your development machine:
- Node.js - Download and Install Node and the npm package manager.
- Yarn - Download and Install Yarn
- Make sure you got the Prerequisites Installed on your local computer.
- Download file .zip or clone via github https://github.com/vinsapr/management
- Open terminal in your project directory and execute this
yarn
command in the current directoryyarn
- Crate file
.env
then copy the value from file.env.example
- After the installation complete, execute this command below to start the project in your local machine
yarn dev
- HR-Management is running on port
PORT
value where you set the.env
file. Example:Then the project will running on portPORT=3333
3333
- Done.
- Make sure you already connect with mysql and have database with name
management
- Execute this command below to run the migration
yarn run-migration
- If you want to running the seeder to make dummy data, execute this command:
yarn run-seed
- Make sure you already running the project include database migration
- open the server address that shown in the terminal when running by adding
/docs
in the browserServer address: http://127.0.0.1:3333/docs
- Select Auth
Register
orlogin
to get bearer token - Copay the token and klik
Authorize
then copy the token into the input field by adding bearer in front of the tokenbearer NjI.cRQFr4VxXmDxrxO2K5vpK3naA0V2qj8qlM4vrc6o7bgm3dtu9trE_SSJoRvb
- Now you can access data employee