Code Monkey home page Code Monkey logo

cloudpress's Introduction

CloudPress: 基于云开发的开源博客系统

快速开始

  1. 创建腾讯云账号: 前往腾讯云官网

  2. 开通 CloudBase:前往TCB 控制台

  3. 新建云开发环境:根据需要选择付费策略,每个用户都可以创建「免费环境」

  4. 开通内容管理:进入新创建的云开发环境,开通「内容管理」,等待 5 分钟左右

  5. 获取云环境 ID、访问密钥:进入新创建的云开发环境,获取环境 ID;进入访问密钥,获取SecretIdSecretKey

  6. 环境搭建

  • 全局安装 CloudBase CLI 和 Next.js
npm i -g @cloudbase/cli next
  • 从 GIT 下载代码
git clone https://github.com/dongyuanxin/cloudpress.git
  1. 设置配置文件
cd cloudpress/
touch .env

配置文件格式:

ENV_ID=你的云环境ID
TCB_SECRET_ID=你的访问密钥SecretId
TCB_SECRET_KEY=你的访问密钥SecretKey

复制一份配置文件到frontend/

cp .env frontend/.env
  1. 初始化数据表
npm run login # CLI 登录 CloudBase
npm run init:db # 初始化数据表结构,包括文章、通知、全局配置等
  1. 部署发布
npm run deploy:frontend
  1. 本地开发
cd ./frontend
npm run dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.