- Node.js: Ensure Node.js is installed. Download from nodejs.org.
- npm: Comes bundled with Node.js.
- Download the LTS version from nodejs.org.
- Run the installer and follow the prompts. (Make sure to select install all needed requirements)
- Verify installation:
node --version npm --version
- Navigate to the project directory:
cd path/to/angular-store
- Install project dependencies:
npm install
- Start the development server:
nx serve angular-store
- Open your browser and go to
http://localhost:4200
.
- To build the project for production:
nx build angular-store --prod --skip-nx-cache
- Navigate to the build output directory:
cd dist/apps/angular-store
- Initialize a Git repository (if not already done):
git init
- Add the remote repository:
git remote add origin https://github.com/your-username/AngularSite.git
- Add and commit the changes:
git add . git commit -m "Deploy Angular store to GitHub Pages"
- Push to the
gh-pages
branch:git push -u origin master:gh-pages
- Your site will be available at:
https://your-username.github.io/AngularSite/