git clone [email protected]:joinfleek/fleek-interview-monorepo.git
cd fleek-interview-monorepo
cd server
yarn
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
More info if needed: Prisma Seed
npx prisma db seed
A new user will be created from server/prisma/seed.ts file.
- login:
[email protected]
- pass:
admin
- role:
ADMIN
More info if needed: Prisma Studio
$ npx prisma studio
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
cd react
yarn
yarn start
3. Go to url: http://localhost:3000
- login:
[email protected]
- pass:
admin
- role:
ADMIN
Typescript (https://www.typescriptlang.org/) for the Frontend and the Backend
Frontend:
- User interfaces: React https://reactjs.org/
- Design: material-ui-next https://material-ui.com/
- GraphQL tool: Apollo Client https://www.apollographql.com/
Backend:
- Server JS: ExpressJs https://expressjs.com/
- Server GraphQL: https://www.apollographql.com/docs/apollo-server/
- ORM (object-relational mapping): Prisma https://www.prisma.io/
- Database sqlite: https://www.sqlite.org/index.html. You can replace by the database you want (PostgreSQL - MySQL - SQLite - SQL Server). Check the prisma documentation https://www.prisma.io/docs/concepts/