There are so many options available on the internet when it comes to deploying your Angular app, but one of my recent favorites is Netlify. Netlify offers you to deploy your app manually and also from GitHub. Here's a step-by-step guide on how to deploy your website on Netlify: Step 1: Build Your Project Go to your project directory and run the build command: ng build or ng build --configuration=production Step 2: Add Netlify Configuration Go to build/your-project-app/browser and add a file netlify.toml with the following configuration: [[redirects]] from="/*" to="/index.html" status=200 This file redirects all routes to your index.html file. Step 3: Deploy on Netlify Login or sign up to your Netlify account and click on "Add new site" then select "Deploy manually." Step 4: Upload Your Files Drag and drop the browser folder to Netlify. Victory!!! Your Angular App is deployed.
What is a JSON server? JSON Server is a simple, lightweight, and mock server that allows you to quickly create a RESTful API with JSON data. It is often used for prototyping, front-end development, or testing purposes. With JSON Server, you can define a JSON file as a database and expose RESTful endpoints to perform CRUD (Create, Read, Update, Delete) operations on that data. It provides a fully functional HTTP server that responds to various HTTP methods like GET, POST, PUT, and DELETE. HOW TO MAKE A JSON SERVER IN REACT APP? STEP1: Create a server folder in the react-js app STEP2: In the server folder, Initialize the package.json file and install the JSON-server using the following commands. npm init -y npm i json-server STEP 3: Create a db.json file in the server folder and write the data in the db.json file. STEP 4: Configure the package.json file. Add the following command in the scripts. "scripts": { "start": "json-server --watch db.json...