Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added react app #31

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
27fd30d
initial commit
wink94 Jan 30, 2023
46347df
initial commit
wink94 Jan 30, 2023
7c86881
db schema
wink94 Feb 14, 2023
9798287
db schema
wink94 Feb 14, 2023
fd58317
db orm added
wink94 Feb 22, 2023
45bee84
db orm added
wink94 Feb 22, 2023
be0e664
db orm added
wink94 Feb 22, 2023
3f8df25
Merge pull request #1 from wink94/base-database-schemas
wink94 Mar 15, 2023
b3c4155
api implementation
wink94 Mar 15, 2023
14c15b8
init implementaion added
wink94 Mar 15, 2023
fae524c
init implementaion added
wink94 Mar 15, 2023
ee7f677
email recipeints table added
kravishan Apr 5, 2023
3100293
email notification table added
kravishan Apr 5, 2023
6860feb
template table added
kravishan Apr 5, 2023
634a079
cleaning
kravishan Apr 5, 2023
00583f5
schema updated
kravishan Apr 5, 2023
b3a1e75
emailRecipeintsDao added
kravishan Apr 5, 2023
47854fd
emailTemplateDao added
kravishan Apr 5, 2023
405e638
recipients endpoint added
wink94 Apr 5, 2023
7b9d364
recipients endpoint added
wink94 Apr 5, 2023
2e5764d
email sending function added
wink94 Apr 16, 2023
a327701
template api added
wink94 Apr 19, 2023
a9d9842
Merge pull request #2 from wink94/recipient-impl
wink94 Apr 19, 2023
3575ede
Merge pull request #3 from wink94/base-api-impl
wink94 Apr 19, 2023
5ebb3cd
unit tests
wink94 Apr 19, 2023
9ebff49
schema template
wink94 Apr 19, 2023
0947ff1
unit test added + delete put implementatino
wink94 May 1, 2023
01eda6f
added react app
wink94 May 2, 2023
e5cf7e5
Merge pull request #5 from wink94/added-react-app
wink94 May 2, 2023
a2a23cc
react app added
kravishan May 2, 2023
1191892
react app added
kravishan May 2, 2023
35ecea3
Two popup windows done
kravishan May 2, 2023
bcec4b2
schema update
wink94 May 3, 2023
7d099d6
fixes
wink94 May 3, 2023
28426df
Update EmailForm.js
kravishan May 3, 2023
7078719
web app integration tobackend
wink94 May 6, 2023
60cd959
authenticate user code change
wink94 May 7, 2023
3032640
authenticate user code change
wink94 May 7, 2023
3620019
authentication added + user login + hypermedia
wink94 May 15, 2023
4e9f9e6
readme update
wink94 May 15, 2023
44b3844
added openapi+fixes
wink94 May 15, 2023
d38389d
added openapi+fixes
wink94 May 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Logs
**/logs
**/*.log
**/npm-debug.log*
**/yarn-debug.log*
**/yarn-error.log*

# Runtime data
**/pids
**/*.pid
**/*.seed
**/*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
**/lib-cov

# Coverage directory used by tools like istanbul
**/coverage/

# nyc test coverage
**/.nyc_output

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

# Bower dependency directory (https://bower.io/)
**/bower_components

# node-waf configuration
**/.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
**/build/Release
**/dist

# Dependency directories
**/node_modules/
**/jspm_packages/

# Typescript v1 declaration files
**/typings/

# Optional npm cache directory
**/.npm

# Optional eslint cache
**/.eslintcache

# Optional REPL history
**/.node_repl_history

# Output of 'npm pack'
**/*.tgz

# Yarn Integrity file
**/.yarn-integrity

# dotenv environment variables file
**/.env

**/.idea/
**/.serverless
**/.webpack/
**/.scannerwork


# dependencies
**/node_modules
**/.pnp
**/.pnp.js

# testing
**/coverage

# production
**/build

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

**/npm-debug.log*
**/yarn-debug.log*
**/yarn-error.log*
43 changes: 38 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,43 @@
# PWP SPRING 2023
# PROJECT NAME
# Email Notification Service

## How to start the application

### Installation
* Install NodeJS 16.xx
* Install Mysql 8
* Install AWS CLI (optional)

### Start API
* cd email-notification-service/
* npm install
* npm start
### Run Tests
* npm test

### Run Lint Fixing
* npm run eslint-fix
### Start Web App
* cd email-notification-client/
* npm install
* npm start

### Add template to aws
aws create-template --template <value>
### authenticate user manual template to aws
aws cognito-idp admin-set-user-password --user-pool-id YOUR_USER_POOL_ID --username test@gmail.com --password "test-123" --permanent

### Setup DB
* Install Mysql 8
* execute `schema.sql`



# Group information
* Student 1. Name and email
* Student 2. Name and email
* Student 3. Name and email
* Student 4. Name and email
* Student 1. Windula Kularatne - Windula.Kularatne@student.oulu.fi
* Student 2. Achira Hendalage - Achira.Hendalage@student.oulu.fi
* Student 3. Sameera Gamage - Sameera.Gamage@student.oulu.fi
* Student 4. Kavindu Magalage - Kavindu.Magalage@student.oulu.fi

__Remember to include all required documentation and HOWTOs, including how to create and populate the database, how to run and test the API, the url to the entrypoint and instructions on how to setup and run the client__

Expand Down
23 changes: 23 additions & 0 deletions email-notification-client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

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

npm-debug.log*
yarn-debug.log*
yarn-error.log*
70 changes: 70 additions & 0 deletions email-notification-client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Loading