- This is a project that simulates a web of shopping website like 原價屋.
- svelteKit
- TailwindCSS(flowbite, skeleton)
- Javascript, Typescript, node.js, npm package
- MySQL for backend
- prisma
- docker(compose)
- Akinom
- SunGj
- KJC
- Notpotato
- Just clone this repo to your local repo using
git clone https://github.com/Akinom0318/database_project.git- Install the modules we need for the project
npm install
# Or
npm i- Please watch .env.example to see the environment setting.
- The first five variables are for the docker to set up your DB environment, and the last one is for prisma to connect to your DB.
- So, add a
.envfile on the root folder, add those six lines in .env.example into it. - Once you make your own .env file done
docker-compose up --build -d
- Then you can open the website by
npm run devemail: admin
password: adminEverything you need to build a Svelte project, powered by create-svelte.
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-appOnce you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openTo create a production version of your app:
npm run buildYou can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.