Giter VIP home page Giter VIP logo

vacation-portal's Introduction

Welcome to Vacation Portal!

This is just a fun little hobby project that I used to learn the basics of Remix and Prisma. If it proves useful, it might become a tool that we use in the company I work for.

Technology stack

  • Remix
  • React.js
  • Prisma
  • Postgresql
  • Tailwindcss
  • Vite
  • Shadcn

How to run the project?

  1. To run the project first you need to run npm install.
  2. Make sure you have postgresql database running and a dedicated database for this project
  3. Add the URL and credentials to your DB to the .env file
DATABASE_URL=postgresql://username:password@localhost:5432/dbname?schema=public

Make sure to replace the values in the provided example with your own. More on how to connect prisma with your database here

  1. Before running the project you need to generate and migrate DB by running npx prisma migrate dev
  2. Run the project by entering npm run dev
  3. Enjoy ๐Ÿ˜Ž

How to authenticate in app?

At the moment there is no support for creating a user from the application itself. You need create a new user in your DB directly. You can use Prisma Studio (npx prisma studio), pgadmin or a tool of your own liking.

When creating a new user, only name, email and role are necessary fields. On first login, the password that you enter will be hashed and saved as the user's password.

This implementation is temporary as in the future the users will always be supplemented externaly, instead of offering the users an option to create their own account.

vacation-portal's People

Contributors

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