Forkthe repository - Creates a replica of repository to your local environment.- Clone the repository - Downloads all repo files to your machine, using
git clone https://github.com/YOUR-USERNAME/code-sync
- Set working directory to the root directory of the project.
cd code-syncFollowing are the steps to run the frontend of the community-website on your local. All the frontend code will go in the client directory.
- Navigate to
clientfolder.
cd client- Install all the required packages and dependencies.
npm install- Rename
.env.exampleto.env& Fill data as described.
Following are the steps to run the backend of the community-website on your local. All the backend code will go in the @root folder.
- Install all the required packages and dependencies on
@Rootfolder undercode-syncdirectory.
npm install- Rename
.env.exampleto.env& Fill data as described.
-
If you wanna run frontend and backend at one time then you can run command
npm run dev
-
For Just Frontend/Client
npm run client
-
For Backend/Server
npm run server
-
Backend Run on port
localhost:ENV_PORT& Frontend Run onlocalhost:3000