Skip to content

joinfleek/fleek-interview-monorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Boilerplate repo for a Fleek interviews


Getting started

1. Clone the repo to your computer

git clone git@github.com:joinfleek/fleek-interview-monorepo.git

2. Go the the repo

cd fleek-interview-monorepo

Server

1. Install the server - # Prisma & Graphql (port 4000)

cd server
yarn

2. migrate the database with Prisma migrate run:

More info if needed: Prisma Migrate

npx prisma migrate dev

To reset your database if needed, use Prisma Reset.

More info if needed: Prisma Reset

npx prisma migrate reset

3. Seed your Database

More info if needed: Prisma Seed

npx prisma db seed

A new user will be created from server/prisma/seed.ts file.

  • login: admin@joinfleek.com
  • pass: admin
  • role: ADMIN

4. Check you databse with Prisma Studio

More info if needed: Prisma Studio

$ npx prisma studio

5. Generate the prisma client

Prisma Client is an auto-generated database client that's tailored to your database schema.

More info if needed: Prisma Generate

npx prisma generate

6. Start the server (http://localhost:4000)

yarn start

7. Check graphQL playground at http://localhost:4000/graphql

Frontend

1. Install the frontEnd - ReactJs (port 3000). In a new terminal run:

cd react
yarn

2. Start the frontend.

yarn start

3. Go to url: http://localhost:3000

4. Log in to the app with whis Admin User:

  • login: admin@joinfleek.com
  • pass: admin
  • role: ADMIN

Made with..

Typescript (https://www.typescriptlang.org/) for the Frontend and the Backend

Frontend:

Backend:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published