HRIS is an internal project for the admin team of Sun Asterisk PH that aims to help and ease admin operations.
- ASP.NET Core (Web) 6
- MSSQL
- GraphQL
- NextJS
- Typescript
- TailwindCSS
- git clone
[email protected]:abduljalilpalala/sph-hris.git
- cd sph-hris
- cd client
- npm install
- cp .env.example .env.local
- Go to the client folder and set the
NEXT_PUBLIC_BACKEND_URL
variable in.env
with the api endpoint - cd ../api
- create a database connection string in appsettings.json e.g.
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=sample;Trusted_Connection=True;"
})
- dotnet run
- cd sph-hris
- cd client
- npm run dev
- cd ../api
- dotnet run
- git clone
[email protected]:abduljalilpalala/sph-hris.git
- cd sph-hris
- cp .env.api.example .env.api
- cp .env.client.example .env.client
- cp .env.db.example .env.db
- cp .env.api_v2.example .env.api_v2
docker compose build
ordocker compose up --build
(this will automatically build and run the containers)docker compose up
(To stop docker containers, run:docker compose down
)
- docker compose build (to build the images)
- docker compose up (to run the containers)
- docker compose up --build (to build and run the containers)
- docker compose down (to stop the containers)
- Open MSSQL Server Management Studio
- Connect to your local or docker database engine (e.g
localhost\<container-name>,<port>
) - Fill username (e.g.
sa
- default username) and password - Click connect
- Run
cd sph-hris/api_v2
to head into the NestJS directory - Run
cp .env.api_v2.example .env.api_v2
to create a local env for NestJS - In .env.api_v2, supply the blank fields with the necessary values
- Run
npm install
to install the dependencies - Run
npm run dev
to run the app manually- Note: We recommend running the project locally using
npm run dev
instead of running in a docker container, for performance related reasons.
- Note: We recommend running the project locally using