Giter Site home page Giter Site logo

five's Introduction

README for Five in a Row Game Project

This README provides instructions on how to set up and run both the front-end and back-end parts of the Five in a Row game project.

Running the Front-end Project

To run the front-end project, you need to have pnpm package manager installed. If you haven't installed pnpm yet, you can install it by running npm install -g pnpm. After installing pnpm, follow the steps below:

cd path/to/five-back  # Replace path/to/frontend/project with your actual front-end project directory
pnpm i                        # Install dependencies
pnpm dev                      # Start the development server

Running Database Scripts

The init.sql file, which initializes the database for the project, is located in the /five-back/src/main/resources/sql directory. To run this SQL script, you can use the command line interface of your MySQL installation. Make sure you replace username with your actual MySQL username:

mysql -u username -p < /path/to/init.sql  # Use the relative or absolute path to the init.sql file

You will be prompted to enter the password for the specified username. After the password is entered, the script will execute and set up the database.

Running the Back-end Project

There are two main ways to run the back-end project: using IntelliJ IDEA or the command line.

Using IntelliJ IDEA

  1. Open IntelliJ IDEA.
  2. Select Open and navigate to the back-end project directory.
  3. Choose the five-back directory and open it as a project.
  4. Once the project is loaded, find the main application file and run it by clicking on the green play button.

Using Command Line

If you prefer using the command line, follow these steps:

cd path/to/backend/project  # Replace path/to/backend/project with your actual back-end project directory
mvn clean package           # Build the project and package it into a JAR file
cd target                   # Navigate to the directory containing the built JAR
java -jar jarFileName.jar   # Replace jarFileName.jar with the actual name of the JAR file

five's People

Contributors

shuhan-duan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.