Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rupeshiya/entrymanager-task
A simple web app for managing Entry of visitors
https://github.com/rupeshiya/entrymanager-task
Last synced: 27 days ago
JSON representation
A simple web app for managing Entry of visitors
- Host: GitHub
- URL: https://github.com/rupeshiya/entrymanager-task
- Owner: Rupeshiya
- License: mit
- Created: 2019-11-22T17:01:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T00:44:15.000Z (about 2 years ago)
- Last Synced: 2024-10-28T16:16:37.124Z (2 months ago)
- Language: TypeScript
- Size: 2.28 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EntryManager
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.1.2.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
# EntryManager
A simple web app for managing Entry of visitors## API
1. Register user (POST)
```sh
> http://localhost:4000/users/register
Request body
{
"name":"test5",
"email":"[email protected]",
"password":"password",
"username":"test5"
}
```
2. Login User (POST)
```sh
> http://localhost:4000/users/authenticate
Request body
{
"password":"password",
"username":"test5"
}
```
3. Check In submit (POST)
```sh
> http://localhost:4000/check/in/submit
Request body
{
"vistorPhone": "9123456789",
"vistorCheckIn": "9:30"
}
```
4. Check Out Submit (POST)
```sh
> http://localhost:4000/check/out/submit
Request body
{
"checkout": "9:30"
}
```
## Usage1. Add .env file in the root directory and add the following:
```sh
mongoUri = ''
secret = 'helloworld'
sendgridUsername = ""
sendgridPassword = ""
mailService = "SendGrid"
PORT = 4000
```
2. Install dependencies
```sh
npm install
```
3. To run backend (only)
```sh
npm run server
```
4. To run the app (both client and server at a time)
```sh
npm run app
```
5. Open your browser and move to ```http://localhost:4000``` (You are good to go!)### Project Structure
```sh
1. Backend files: /server
2. Client Side: /src
```
## Running application:### 1. Home page
![home](https://user-images.githubusercontent.com/31209617/69600760-d326c300-1037-11ea-9e50-a60ec35e92aa.png)### 2. Login Page
![login](https://user-images.githubusercontent.com/31209617/69600800-01a49e00-1038-11ea-97c0-f075d20fdb02.png)### 3. Register page
![register](https://user-images.githubusercontent.com/31209617/69600822-12edaa80-1038-11ea-812c-9958a7e8af3a.png)### 4. Check In
![checkIn](https://user-images.githubusercontent.com/31209617/69600861-331d6980-1038-11ea-87b9-78fa43b7875c.png)### 5. Check Out
![checkout](https://user-images.githubusercontent.com/31209617/69600883-47f9fd00-1038-11ea-86eb-76b3f1d45f05.png)### 6. Email sent
### Made with :heart: by Rupeshiya