Skip to content

Arsen302/SkillUp

Repository files navigation

SkillUp — API

Prerequisites

Node >=16, npm >=8, Docker, Docker-Compose should be installed in the system.

Install npm dependencies

yarn install

Environment variables

Fill in .env file using .env.example as an example.

If you want to use apollo studio for testing API you can signup and create new graph, and then you can get creds and adding their to .env file to work with apollo studio

APOLLO_KEY=... APOLLO_GRAPH_ID=... APOLLO_GRAPH_VARIANT=... APOLLO_SCHEMA_REPORTING=...

Database instructions

Run database via Docker-Compose

docker-compose up -d

Check this URL in your .env.example it's needed correct for connecting migrations library to database

DATABASE_URL=postgres://test:test@localhost:5432/test

Run migrations

yarn run migrations:up

Fill database with seeds

yarn run seeds:up

Running server Locally

Build and Production mode

yarn run start:prod

Development mode

yarn run start:dev

We have 3 roles and 3 default users with their creds:

  1. ADMIN:

    • First name: Kyle
    • Last name: Simpson
    • Email: [email protected]
    • Non Hashed Password: sdpo!~[dvjfo32epfoj23
  2. TEACHER:

    • First name: Donald
    • Last name: Knuth
    • Email: [email protected]
    • Non Hashed Password: knuth302don
  3. STUDENT:

    • First name: John
    • Last name: Doe
    • Email: [email protected]
    • Non Hashed Password: johndoe123

License

MIT licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published