Web API for code.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
365 B

  1. import { Uuid } from '@theoryofnekomata/uuid-buffer';
  2. import { UserService, UserServiceImpl } from '../src/modules/user'
  3. const main = async () => {
  4. const userService: UserService = new UserServiceImpl()
  5. const newUser = await userService.create({
  6. username: 'username',
  7. password: 'password',
  8. })
  9. console.log(Uuid.from(newUser.id).toString());
  10. }
  11. void main()