Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Open-Chess-back
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xadrez-LIvre
Open-Chess-back
Commits
38eea245
Commit
38eea245
authored
1 year ago
by
Richard Fernando Heise Ferreira
Browse files
Options
Downloads
Plain Diff
Merge branch 'wps20-develop-patch-24482' into 'develop'
Update README.md See merge request
!13
parents
59d53c57
3d12cd97
Branches
19-conectar-dois-jogadores-em-uma-partida
develop
No related tags found
1 merge request
!13
Update README.md
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+9
-12
9 additions, 12 deletions
README.md
with
9 additions
and
12 deletions
README.md
+
9
−
12
View file @
38eea245
# Open Chess Back-End
## Description
This is the Back-End application for the Open Chess project.
It relies on GraphQL and Prisma.
## Files
##
#
Files
server.js: The main file of the application.
src/typedefs/
typeDefs.js
: Type definitions used by GraphQL.
src/resolver
/resolvers.j
s: Implementations of the types defined in type
D
efs
.js
.
src/typedefs/: Type
s
definitions used by GraphQL.
src/resolvers
/
: Implementations of the types defined in
src/
type
d
efs
/
.
prisma/schema.prisma: Schema used by Prisma to configure the Postgres DB.
## Running the application
##
#
Running the application
To install the dependencies to run the application, execute the following commands inside its directory:
```
shell
$
sudo
apt
install
docker-compose
$
docker-compose up
-d
$
sudo
apt
install
docker
$
sudo
apt
install
docker-compose-plugin
$
docker compose up
-d
$
npm
install
```
To set up a local database, execute the following:
```
shell
$
npx prisma migrate dev
--name
"nome"
--create-only
$
npx prisma migrate dev
$
npx prisma db push
```
To run the application, execute
one of
the line
s
below:
To run the application, execute the line below:
```
shell
$
npm run dev
$
npm start
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment