Coder Social home page Coder Social logo

illlyas / vercel-express Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ngduc/vercel-express

0.0 0.0 0.0 29 KB

Vercel Express and UI Webapp Example. Live Demo - https://vercel-express-ngduc.vercel.app/

Home Page: https://vercel-express-eight-ebon.vercel.app

TypeScript 24.69% CSS 5.07% HTML 26.71% JavaScript 43.53%

vercel-express's Introduction

Vercel-Express

Vercel Express and UI fullstack webapp example.

Live Demo - https://vercel-express-ngduc.vercel.app

Set up & Deploy with Vercel

Star and clone this repo, update package.json with your information (project name, your name, etc.), verify vercel.json.

$ npm install
$ cd ./backend && npm install && npm run build
$ cd ..
$ npm install vercel -g
$ vercel
  • Vercel will generate a ".vercel" directory, don't share or commit this one!
  • After deploying, open your URL like this: YOUR-VERCEL-APP-ID.vercel.app
  • Build your backend and ui, the outputs are located at "backend/build" and "ui/buid".
    • Some boilerplate generators output the built files to "dist" instead of "build", so update your vercel.json accordingly.

Code

Backend

Frontend

  • Map API routes (/api/...) and static (UI) routes (/...).
  • Environment variables - examples:
    • $ vercel secrets add my-mongodb-uri mongodb+srv://<user>:<password>@clusteridxxx.mongodb.net/<database-name>?retryWrites=true
    • add "env" to vercel.json { "env": { "MONGODB_URI": "@my-mongodb-uri" }, ... }

Links

vercel-express's People

Contributors

ngduc 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.