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:
git clone https://github.com/Onyx-Innovators/TikTok-Harbor.git
cd TikTok-Harbor
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.src
directory.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:
@sveltejs/adapter-static
package:npm install -D @sveltejs/adapter-static
svelte.config.js
file:import adapter from '@sveltejs/adapter-static';
export default {
kit: {
// ...
adapter: adapter()
}
};
npm run build
[!NOTE] To deploy the website to other platforms, refer to the SvelteKit Adapters documentation.
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.