-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from 42mogle/develop
Develop
- Loading branch information
Showing
44 changed files
with
2,931 additions
and
923 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# main-deploy.yml | ||
|
||
name: Deploy main branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.OS }}-build- | ||
${{ runner.OS }}- | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | ||
|
||
- name: Generate Environment Variables File for Production | ||
run: | | ||
echo "PUBLIC_URL=$PUBLIC_URL" >> .env | ||
echo "REACT_APP_AWS_BACKEND_SERVER=$REACT_APP_AWS_BACKEND_SERVER" >> .env | ||
echo "REACT_APP_OAUTH_URL=$REACT_APP_OAUTH_URL" >> .env | ||
env: | ||
PUBLIC_URL: ${{ secrets.PUBLIC_URL }} | ||
REACT_APP_AWS_BACKEND_SERVER: ${{ secrets.REACT_APP_AWS_BACKEND_SERVER }} | ||
REACT_APP_OAUTH_URL: ${{ secrets.REACT_APP_OAUTH_URL }} | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Build | ||
run: npm run build | ||
env: | ||
CI: "" | ||
|
||
- name: Deploy | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
PROFILE: ${{ secrets.AWS_PROFILE }} | ||
run: aws s3 sync ./build ${{ secrets.AWS_BUCKET_NAME }} --region ${{ secrets.AWS_DEFAULT_REGION }} | ||
- name: Invalidate cache CloudFront | ||
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION }} --region ${{ secrets.AWS_DEFAULT_REGION }} --paths '/index.html' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"editor.tabSize": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,30 @@ | ||
# Getting Started with Create React App | ||
# Project Overview | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
This web application is built using PostgreSQL and React, and the codebase can be found in the repository. The back-end of the application is built using Nest.js, and the front-end communicates with the back-end through APIs. | ||
|
||
## Available Scripts | ||
The application is designed to provide a reliable and efficient way to manage data and deliver a seamless user experience. By leveraging the strengths of PostgreSQL, React, and Nest.js, this application is a powerful example of modern web development technologies. | ||
|
||
In the project directory, you can run: | ||
# Technologies Used | ||
|
||
### `npm start` | ||
PostgreSQL: a powerful and reliable database management system used to store and manage data for the application. | ||
React: a popular front-end framework used to create modern and user-friendly user interfaces. | ||
Nest.js: a scalable and efficient back-end framework used to build server-side applications. | ||
Axios: a library used to make HTTP requests from the front-end to the back-end API. | ||
Bootstrap: a CSS framework used to create responsive and mobile-friendly user interfaces. | ||
Functionality | ||
|
||
Runs the app in the development mode.\ | ||
Open [http://localhost:3000](http://localhost:3000) to view it in your browser. | ||
The application allows users to manage data in a variety of ways, including: | ||
|
||
The page will reload when you make changes.\ | ||
You may also see any lint errors in the console. | ||
User authentication and authorization using Nest.js and JSON Web Tokens (JWTs) | ||
Secure storage of user data and passwords using PostgreSQL | ||
Create, read, update, and delete (CRUD) operations for various types of data, including users, products, and orders | ||
Integration with a payment gateway to process payments for orders | ||
Display of statistics and reports for various types of data, including sales, orders, and users | ||
# Contributing | ||
|
||
### `npm test` | ||
Contributions to this project are welcome. If you would like to contribute code or suggest a new feature, please fork the repository and submit a pull request. Before submitting a pull request, please ensure that your code adheres to the project's coding standards and that all tests pass. | ||
|
||
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. | ||
# Conclusion | ||
|
||
### `npm run build` | ||
In conclusion, this web application is a powerful example of modern web development technologies, using PostgreSQL and React on the front-end and Nest.js on the back-end. The application provides a reliable and efficient way to manage data and deliver a seamless user experience, with features such as user authentication, data CRUD operations, and integration with a payment gateway. Overall, this project demonstrates the value of modern web development in solving real-world problems and delivering high-quality user experiences. | ||
|
||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": "src", | ||
"paths": { | ||
"api/*": ["api/*"] | ||
} | ||
}, | ||
"include": ["src"] | ||
} |
Oops, something went wrong.