Giter VIP home page Giter VIP logo

voyager's Introduction

About Voyager

Voyager is a Node and SQL based web application framework that provides everything you need to produce robust, scalable, database-driven web apps, including:

Built on top of Express, and modeled after Rails and Laravel, Voyager provides a complete solution to getting up and running with a user-based app as quickly as possible.

Getting Started

  1. Download the Voyager command line interface (CLI) with NPM:

     npm install -g voyager-cli
    
  2. Create a new Voyager project, with or without auth:

      voyager new newApp
    

    or

      voyager new newApp --auth
    

    Notice: You must run the built-in Knex migrations and add a .env file with valid credentials for the auth version to work. Further auth related instructions can be found under Auth Setup below.

  3. Change directory to newApp and start the Voyager server:

     cd newApp
     voyager start
    
  4. Open up a new terminal tab and run webpack (requires webpack installed globally):

     webpack
    
  5. Your app should open up automatically at http://localhost:3001 and you should see the Voyager start up page.

Auth Setup

To get started with Voyager's built-in authentication, you must follow a few steps required to connect your app to a database and utilize key functionalities such as email confirmations and password resets.

  1. Create a file called .env in the root of your newly generated Voyager project

  2. Copy the contents of .env.example and paste inside of the newly created .env file:

     DB_HOST=
     DB_USER=
     DB_PASSWORD=
     DB_NAME=
    
     MAILGUN_KEY=
     MAILGUN_DOMAIN=
    
  3. Create a MySQL database for your app, grab a Mailgun API key, and insert the corresponding values into the .env file. A finished version will look something like this for a local server:

     DB_HOST=localhost
     DB_USER=root
     DB_PASSWORD=root
     DB_NAME=newApp
    
     MAILGUN_KEY=key-kfvud83k3kf3vbn22k223222
     MAILGUN_DOMAIN=mailgun.yourdomain.com
    
  4. Install knex if you haven't already:

     npm install knex -g
    
  5. Run knex migrations:

     knex migrate:latest
    
  6. Restart the Voyager server:

     voyager start
    
  7. Open a new tab in terminal and start webpack:

     webpack
    

You should now have a fully functioning app with auth features such as user registration, user login, email confirmation, and password reset functionality. For more information and instruction regarding Voyager auth, check the Chris Courses YouTube channel for Voyager tutorials and more.

Quick Docs

Knex Migration API

Run Migrations: knex migrate:latest

Rollback Last Migrations: knex migrate:rollback

License

Voyager is an open-source framework licensed under the MIT License.

voyager's People

Contributors

christopher4lis avatar nkr1shna 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.