Setting up various JS Projects
January 9, 2024
Setting up various JS Projects #
Following are steps for setting up various JS projects. This includes:
Steps #
Following are steps to ensure we have SSH key mapped correctly
- Log in to https://git.fafadiatech.com
- Click on the profile section.
- Select Your Settings.
- Navigate to SSH Keys.
- Ensure that your local machine SSH keys are correctly mapped.
- If SSH keys are not mapped click on “add key” button.Provide a key name (eg.
zeeshan fafadia) - In your terminal type the command
cat ~/.ssh/id_rsa.pub - Copy the displayed SSH keys and paste them into the content box. Click on “Add Key.”
Following are steps to setup repos locally
- Go to the project repository you want to work on.
- Copy SSH URL of the repository E.g.
gogs@git.fafadiatech.com:archana/learn-exponent.git. - In your terminal type
git clone gogs@git.fafadiatech.com:archana/learn-exponent.gitand press enter. - After cloning project open it in visual studio code. Also ensure to chang your working directory to cloned repo
- Ensure you have correct version of node running
nvm use 18.17.1, please setup nvm if not already - Install the project requirements using the command
npm install - Run the command
npm run develop
We’ve also created new repos for NextJS migrations
Following are research tasks we will be doing for launching of various site
- [EC + OS] NextJS setup with re-using existing components
- [EC + OS + MS] NextJS + S3 + Jenkins CI/CD
- [EC + OS + SS] Figure out what all needs to be made