Giter VIP home page Giter VIP logo

actix-solidjs-web-performance's Introduction

To create client:

  • npm init solid app-ts client
  • npm i solid-app-router

To create server:

  • cargo new server

  • add dependencies to Cargo.toml

  • add Auto Reloading: cargo install systemfd cargo-watch

    • add listenfd = "0.3" to dependencies
  • To start server: systemfd --no-pid -s h ttp::8080 -- cargo watch -x run

  • install ORM: cargo install diesel_cli --no-default-features --features postgres

  • Tell Diesel where DB is located in the .env file (not included in GitHub): DATABASE_URL=postgres://postgres:password@localhost/rest_api

  • use diesel setup in your terminal to creare a DB and to create a migrations folder in the server folder.

  • use diesel migration generate create_user in your terminal to create files for our user migration.

    • Edit the up.sql and down.sql files located in the generated migrations folder.
  • Apply first migration using the diesel migration run command in your terminal.

    • Creates a schema.rs file in the src folder.
  • Add CORS to API (so client can request data): actix-cors needs to be added to dependencies. change main.rs to match base example.

Resources:

To Generate Data

  • chmod +x generate_data.bash
  • run: ./generate_data.bash

actix-solidjs-web-performance's People

Contributors

dbrucknr avatar

Watchers

 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.