A sample to start things of with the database project
- express as the main framework
- sqlite3 as database during development
- typescript for typing and comfort
- uuid for secure ids
- bcrypt to encrypt the passwords
- yarn package manager
- vue.js as frontend framework (
frontend
-folder; but other frontend frameworks or SSR templating engines might be easier to use)
- click the fork button
- open terminal
git clone https://github.com/<yourusername>/sample-project.git
cd sample-project
npm install
oryarn install
- To start server:
npm run start
oryarn start
- To start frontend:
cd
intofrontend
- Serve or run
npm run serve
for hot reload or
- To deploy:
- frontend:
cd frontend/
- Verify options in
vue.config.js
npm run build
- server:
npm run build
oryarn build
- frontend:
- install github cli tools if you don't already have them
- open terminal
gh repo fork https://github.com/Thien-An-Ngo/sample-project.git --clone
cd sample-project
npm install
oryarn install
- To start server:
npm start
oryarn start
- To deploy:
npm build
oryarn build