Coder Social home page Coder Social logo

yinqianwu / xxxbt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metlhedd/mblog

0.0 0.0 0.0 6.5 MB

A fast, simple and powerful blog with node.js and rust.

License: MIT License

JavaScript 3.06% CSS 41.06% Vue 1.23% Rust 1.17% TSQL 0.01% PLpgSQL 0.04% RenderScript 0.02% HTML 52.05% TypeScript 1.37%

xxxbt's Introduction

testapp

A blazing fast web built with Vue.js (frontend) and Rocket.rs (backend).

Pre-requisites

  • Rust with nightly toolchain.
  • Node.js (recommend version >= 12.x.x)

Installing all dependencies

  • Frontend:
cd web
npm install
  • Backend:
cd ..
cargo build

Running

Development mode

If you want to customize your site or add new features use both commands (on separated terminals):

cd web
npm run dev
cd ..
cargo run

And then you can start adding new stuff or editing what already exists!

Production mode

Running on production mode lets you generate the client files and run the client and server only using Rocket.rs.

cd web
npm run generate

cd ..
cargo run

Configuration

  1. On the files:
pages/index.vue
pages/article/_slug.vue

You can see that it has the string http://localhost:8000/ it is the server address to search for the post images.

  1. On the file nuxt.config.js, you can see:
proxy: {
    '/api/': {
        target: 'http://localhost:8000/api/',
        pathRewrite: {
        '^/api/': ''
        },
        changeOrigin: true
    }
}

You will need to the same as for the above, change the server adress to the correct adress based on the rust server.

xxxbt's People

Contributors

metlhedd avatar

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.