Skip to content

Commit

Permalink
clean up repository
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenaldkarrel committed Jan 16, 2023
0 parents commit cc363ca
Show file tree
Hide file tree
Showing 103 changed files with 47,241 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This file need to be in sync with .gitignore
.DS_Store

# Logs
logs
*.log
npm-debug.log*

# Grunt intermediate storage (http:https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Build
build

# Dependency directories
node_modules

# NPM package lock
package-lock.json

# Optional npm cache directory
.npm

# Optional REPL history
.storybook
yarn-error.log
package-lock.json

# Enviroment variables
.env
.env*

# Export
out
.vscode/settings.json
.idea/*

# Test
coverage

**/*.snap.ts
**/*.snap.js

.eslintcache

# Storybook
/storybook-static/

# JSON files
tsconfig.json
65 changes: 65 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["import", "react", "@typescript-eslint"],
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-empty-function": ["error"],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"indent": [
"error",
2,
{
"SwitchCase": 1,
"ignoredNodes": ["ConditionalExpression"]
}
],
"max-depth": ["warn", 3],
"max-len": ["error", 110],
"max-params": ["error", 2],
"no-console": ["error"],
"no-empty-function": "off",
"react/jsx-indent": [
2,
2,
{
"indentLogicalExpressions": true
}
],
"react/jsx-max-props-per-line": [
2,
{
"maximum": 2,
"when": "multiline"
}
],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# Optional npm cache directory
.npm
.npmrc

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

# log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# vscode
.vscode/*
!.vscode/launch.json
6 changes: 6 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"hooks": {
"pre-commit": "yarn lint --fix && yarn test --passWithNoTests --watchAll=false",
"pre-push": "yarn build"
}
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/gallium
16 changes: 16 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/preset-create-react-app"
],
"framework": "@storybook/react",
"core": {
"builder": "@storybook/builder-webpack5"
}
}
21 changes: 21 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { ChakraProvider } from "@chakra-ui/react";

const withThemeProvider = (Story) => (
<ChakraProvider>
<Story />
</ChakraProvider>
);

export const decorators = [
withThemeProvider
];

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Rhenald Karrel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
73 changes: 73 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# FE Health 7 - Capstone Project

This is an application intended for the GIGIH Generation 2.0 capstone project

# SehatIn

SehatIn is a Web Application to make it easier for the public to access and assist in increasing the efficiency and effectiveness of health facilities. SehatIn offers Electronic Medical Report as its main feature. In addition, SehatIn also presents a modernization of the health facility system, such as involving technology in all activities at health facilities, be it registration, payment, and taking medicine by patients.

## Features Highlight

Patient

- Register and login
- Change profile
- Make a reservation
- View medical record history, taking medication, and information/payment status
- View a list of reservation history

Doctor

- Login
- Change profile
- View a list of patient medical records
- Entering patient medical record data

Receptionist

- Login
- Change profile
- Manage the patient incoming reservation status
- Monitor patient queue data
- Manage payment status and patient medication collection

Admin

- Login
- Change profile
- Manage users
- Manage medication
- Manage doctor schedule

## How to install & run

How to Clone the project using git and install the dependencies using yarn?

```bash
# Clone this repository
$ git clone https://github.com/gg2-sehatin/sehatin.git

# Go to repository folder
$ cd sehatin

# Install dependencies
$ yarn install
```

How to Run the application?

first, run application on terminal git bash

```bash
$ yarn start
```

and then, run database on another git bash terminal

```bash
$ yarn db
```

## License

[MIT](https://choosealicense.com/licenses/mit/)
Loading

0 comments on commit cc363ca

Please sign in to comment.