Code Monkey home page Code Monkey logo

typescript-login-register's Introduction

TypeScript Login & Register Boilerplate

A basic boilerplate to get started using a login/register script with alt:V.

Installation

To begin with, you need to know which database you're using. Typeorm supports the following databases as of now:

  • MySQL
  • MariaDB
  • Postgres
  • CockroachDB
  • SQLite
  • Microsoft SQL Server
  • Oracle
  • SAP Hana
  • sql.js

Pick your database and install it via npm/yarn. An example to install MariaDB would be:

npm i mariadb

To install all other missing dependencies just enter the following:

npm i

After you installed all dependencies, you need to configure your database connection. This file can be found inside src/server/database/index.ts. Here you can change all database params to your needs.

ATTENTION: Don't use an account with root access to your database. Otherwise you can be sure, your data gets stolen or compromized.

Building the resource

To build the project you basicly just need to run the build command:

npm run build

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

typescript-login-register's People

Contributors

crazyworldpl avatar dependabot[bot] avatar justzerooo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

typescript-login-register's Issues

Copy / Config Issue?

Hello,

i have seen some issues here.

  • Files from src/client will moved wrong. As example :
    https://i.imgur.com/Z6HDt6q.png

  • Also Client Files empty
    https://i.imgur.com/UIOCUgL.png

Missing the resource.cfg file and script doesn't work

After successfully building and copying the directory "lr" from "resources", I get this error when loading the server.

[12:22:10] Loading resource lr
ReferenceError: require is not defined
    at Object.782 (file:///opt/altv/resources/lr/server.js:1:10958)
    at n (file:///opt/altv/resources/lr/server.js:1:11166)
    at Object.573 (file:///opt/altv/resources/lr/server.js:1:4401)
    at n (file:///opt/altv/resources/lr/server.js:1:11166)
    at Object.198 (file:///opt/altv/resources/lr/server.js:1:4357)
    at n (file:///opt/altv/resources/lr/server.js:1:11166)
    at file:///opt/altv/resources/lr/server.js:1:11206
    at file:///opt/altv/resources/lr/server.js:1:11228
    at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
    at async Loader.import (internal/modules/esm/loader.js:166:24)
[12:22:10][Error] Failed to load resource lr

Additionally, resource.cfg is not created.
obraz

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.