-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding
nodejs-sveltekt
example (#20)
* added oceanbase-python-api, oceanbase-sequelize, oceanbase-sveltekit examples * added example * adding nodejs-svelte example * adding nodejs-svelte example * adding nodejs-svelte example updated README --------- Co-authored-by: Wayne <[email protected]>
- Loading branch information
Showing
26 changed files
with
6,656 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
# Keep environment variables out of version control | ||
.env | ||
/.svelte-kit | ||
.svelte-kit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Full Stack App with SvelteKit and OceanBase | ||
|
||
This project demonstrates how to build a fullstack app using SvelteKit for the frontend and OceanBase as the database. The application is a simple Todo app that allows users to create, read, update, and delete tasks. | ||
|
||
## Technologies Used | ||
|
||
- SvelteKit: A framework for building web applications of all sizes. | ||
- OceanBase: A distributed relational database management system developed by Ant Group. | ||
- MySQL2: A MySQL driver for Node.js. | ||
- Tailwind CSS: A utility-first CSS framework for rapidly building custom user interfaces. | ||
|
||
## Setup | ||
|
||
1. Clone the repository to your local machine. | ||
|
||
2. Navigate to the project directory. | ||
|
||
``` | ||
cd nodejs-sveltekit | ||
``` | ||
|
||
3. Install the necessary dependencies. | ||
|
||
``` | ||
npm i | ||
``` | ||
|
||
4. Rename the `.env.example` file to `.env` and update the values with your own OceanBase database credentials. | ||
|
||
5. Start the development server. | ||
``` | ||
npm run dev | ||
``` | ||
6. Open your browser and navigate to `http://localhost:3000` to view the app. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"$lib": ["src/lib"], | ||
"$lib/*": ["src/lib/*"] | ||
} | ||
}, | ||
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"] | ||
} |
Oops, something went wrong.