Giter Site home page Giter Site logo

vota.dev's Introduction

vota.dev

Welcome to vota.dev!

This is a work in progress!

Development

  1. Install the project with npm install
  2. Initialize the @prisma/client with npm prisma generate or npx prisma generate
  3. Set-up your environment variables following the .env.example file. NOTE: The environment file must be named like: .env
    • You can get the GITHUB_ID and GITHUB_SECRET following GitHub - Set-Up an OAuth Application
    • You can set in SECRET whatever you want or a strong character string like a base64, sha1, etc...
    • You need to uncomment NEXTAUTH_URL to remove the warning alert in localhost.
    • You can get the DATABASE_URL following Using Railway
  4. Migrate the prisma generated database to the PostgreSQL on Railway with npx prisma migrate dev
  5. You can now start developing for vota.dev

GitHub - Set-Up an OAuth Application

  1. Login to Login - GitHub
  2. Enter your applications in developer settings Apps - GitHub
  3. Inside OAuth Apps click on New OAuth App and fill the fields.
    • You can set the 'Homepage URL' to http://vota.dev and the 'Callback URL' to http://localhost:3000/api/auth/
  4. You can retrieve the Client ID and the Client Secret there

Using Railway

  1. Login to Login - Railway
  2. Accept the ToS ToS - Railway
  3. Create a new project with PostgreSQL Create - Railway
  4. Claim the project
  5. On 'Environment', click on 'PostgreSQL' then click on 'Connect'
  6. You can retrieve the Postgres Connection URL there

vota.dev's People

Contributors

midudev avatar nelsondev19 avatar cristhofermf avatar hodeinavarro avatar rsbmk avatar edgarguitarist avatar kevinzunigacuellar avatar alejandro1709 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.