This guide provides step-by-step instructions for setting up, developing and Deployment the TikTok Harbor website. The TikTok Harbor is built using SvelteKit, a framework for building website with Svelte.
Before you begin, make sure your have the following installed on your development machine:
- Clone the repository to your local machine:
git clone https://github.com/Onyx-Innovators/TikTok-Harbor.git
- Change into the project directory:
cd TikTok-Harbor
- Install the project dependencies:
npm install
To run the website locally, use the following command:
npm run dev
This will start the development server. Open your web browser and visit http://localhost:5173/
to view the website.
src/components
: Reusable Svelte components.src/config
: Configuration files.src/lib
: Utility functions of external libraries.src/routes
: Contains Svelte files for each page of the website.src/stores
: Svelte stores for managing global state.src/utils
: Utility functions for the website.static
: Static assets such as images, videos, and other files.
- Make changes to Svete files in the
src
directory. - Save your changes and the development server will automatically reload.
To build the website for production, use:
npm run build
This will generates an optimized version of the website in the build
directory.
Ti deploy the website to a static hosting platform, use the following command:
- Install the
@sveltejs/adapter-static
package:
npm install -D @sveltejs/adapter-static
- Add the adapter to the
svelte.config.js
file:
import adapter from '@sveltejs/adapter-static';
export default {
kit: {
// ...
adapter: adapter()
}
};
- Build the website for production:
npm run build
- Deploy the website to the hosting platform.
Note
To deploy the website to other platforms, refer to the SvelteKit Adapters documentation.
- Fork the repository from GitHub.
- Clone your fork to your local machine.
- Create a new branch for your festure or bug fix.
- Make your changes and submit a pull request.
This guild provides a basic setup for the development of the TikTok Harbor website. Customization and extent is based on your requirements. Always refer to the official documentation for the tools and frameworks used for more in-depth information.
For more information, refer to the SvelteKit documentation and the Svelte documentation.
The TikTok Harbor website is open-source and licensed under the MIT License.