Guide to get started with setting Up SourceTraq Development Environment
Clone the SourceTraq repository from GitHub:
git clone https://github.com/shridhar-tl/sourcetraq.git
Navigate into the project directory:
cd sourcetraq
Switch to develop branch:
git checkout develop
Install the project dependencies using npm:
npm install
Install the SourceTraq extension from the Chrome Web Store or other supported browsers. Search for "SourceTraq" in the respective extension store and add it to your browser.
Setting up a custom host entry is crucial for local development. It simulates a domain name, enabling OAuth and other functionalities to work seamlessly.
Open Notepad or any text editor with administrator privileges.
Open the hosts
file located at C:\Windows\System32\drivers\etc\hosts
.
Add the following line:
127.0.0.1 local.sourcetraq.com
By default, the project runs on port 80. To change the port number, adjust the .env
file.
Run the project using npm:
npm start
Access the development environment at http://local.sourcetraq.com:{PORT}
(replace {PORT}
with the chosen port number).
With the SourceTraq extension installed, you can now explore and test the features of the project seamlessly.