- Angular-Render-Web-Building
- TUTORIAL - Deploy a Web Project to Render Using AngularJS (or Any Web Project)
- Other
This GitHub repository provides a powerful tool for developers looking to build web applications using AngularJS.
It allows users to design, compile, and test their applications efficiently.
With Render integration, you can easily deploy your project and see it live. 🌐 The process starts with creating your AngularJS application, followed by compiling it using Angular CLI.
You can then test your application locally before deploying it on Render for real-time visualization. 🚀
This is an ideal solution for those seeking to optimize their web development workflow.
This branch of the repository is dedicated to the application enabling compilation on Render. It includes the necessary files for API deployment, a configurable Dockerfile, and the compiled application from the Angular-Build-App branch (Optional - Add your code).
This project is designed to simplify the deployment and management of the application on the Render platform.
It provides easy configuration and deployment of an Angular application with a secure API.
- Secret: PSSWD
- Automated API deployment
- Simplified Docker configuration
- Pre-compiled Angular application
Before starting, make sure you have the following installed:
- Node.js
- Docker (Optional)
- Git
Choose your preferred method to install the project:
-
Clone the repository:
git clone https://github.com/Mfxof/Angular-Render-Web-Building.git cd Angular-Render-Web-Building
If you'd like to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch (git checkout -b feature/my-new-feature)
- Make your changes and commit them (git commit -m 'Add my new feature')
- Push your branch (git push origin feature/my-new-feature)
- Open a Pull Request
This tutorial will guide you through downloading, configuring, forking, and deploying a web project on Render using AngularJS as an example.
-
Clone the project to your local machine.
-
Use the following command in your terminal:
git clone https://github.com/username/project-name.git
-
Before starting, make sure the project configuration matches your needs.
-
Check for the following:
- Configure the
Dockerfile
file, or other file. - Any other environment-specific settings (environment variables, file paths, etc..).
Example: For Angular projects, you might want to check the
angular.json
file or the environment settings insrc/environments/
. - Configure the
-
If you want to make changes, you can either:
- Fork the project (by clicking "Fork" on GitHub) to create a copy under your GitHub account.
- Create a new repository on GitHub to host a modified version of the project.
-
⚠️ Sur GitHub configurer sa pour avoir des envois automatiques des Push dans les repository sur Render⚠️ - In the repository go to
Settings
Security
->Secret and variables
->Actions
- Create a
New repository secret
- Add a the name "RENDER"
- In the repository go to
- Go to the project page on GitHub.
- Click the Fork button in the top-right corner.
- After forking, you'll have a copy of the project under your GitHub account.
- Go to GitHub and click New Repository.
- Name your repository and add initial files if necessary.
- After customizing or building your project, you need to place the ready-to-deploy version in a folder called
deployApp
.
-
If you're using Angular, build the project with the following command:
ng build --prod
-
Look the https://github.com/Mfxof/Angular-Render-Web-Building/tree/Angular-Build-App
-
This will generate an optimized version of your project in the
/dist
folder. -
Copy the files from the
dist/
folder to thedeployApp/
folder.
- Once you've added the build to the
deployApp
folder, it's time to push the changes to your GitHub repository.
-
Open your terminal and navigate to the project directory.
-
Run the following commands:
git add deployApp/ git commit -m "Added build to deployApp" git push origin main
6. Go to Render
- If you don't have a Render account yet, create one here.
- Click Sign Up.
- Choose your sign-up method (GitHub, Google, or Email).
- Choose GitHub if you can.
⚠️ (To have a automatic connect to your repository)
- Choose GitHub if you can.
- Follow the instructions to complete your account creation.
- Once logged in to Render, follow these steps to create a new project.
- Go to your dashboard.
- Click Create New Project.
- Name your project (e.g., "My AngularJS Project").
- Select your GitHub repository (the one where you pushed the project in
deployApp
).
The next steps will include configuring deployment settings and launching the project on Render.
- My GitHub : https://github.com/Mfxof
- The initial repository : https://github.com/Mfxof/Angular-Render-Web-Building
- Render : https://dashboard.render.com