Fork
the 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-sync
Following 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
client
folder.
cd client
- Install all the required packages and dependencies.
npm install
- Rename
.env.example
to.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
@Root
folder undercode-sync
directory.
npm install
- Rename
.env.example
to.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