This is a Next.js application built with Firebase Studio, designed to provide a collection of simple, sensory-friendly games.
To run this project on your local machine, you'll first need to clone the repository from Git. Then, you can choose to run it either directly with npm (the standard method) or with Docker.
First, open your terminal and clone the repository to your local machine:
git clone https://github.com/ajaysuseel/Social_Games.git
cd social-gamesThis is the recommended approach if you have Node.js installed on your system.
-
Install Dependencies: In the project's root directory (
social-games), run this command to install all the necessary packages:npm install
-
Build the Application: After installation, create a production build of the app:
npm run build
-
Start the Server: Finally, start the Next.js production server:
npm start
-
Open the App: The application will now be running at http://localhost:3000.
This method is great for a consistent setup, as it bundles the application and its dependencies into a container.
-
Build the Docker Image: In the project's root directory, run the following command. This might take a few minutes the first time.
docker build -t social-games . -
Run the Docker Container: Once the image is built, start a container with this command:
docker run -p 3000:3000 social-games
-
Open the App: You can now access the application by navigating to http://localhost:3000 in your web browser.
This project was created in Firebase Studio.