Skip to content

Guess-The-Song/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instrutions for running the server

Install dependencies

Node.js

I would personally recommend using NVM to install Node.js.
NVM is a version manager for Node.js. It allows you to install multiple versions of Node.js and switch between them.

If you don't want to use NVM, you can download Node.js from here.

NPM

NPM is installed with Node.js. You can check the version with npm -v.

RETHINKDB

You can download RethinkDB from here.

Setup

Navigate to the server directory (this directory) and run:

npm install

This will install all needed dependencies.

My recommendation is to create a new directory for the database in the directory of this project (may come with propper config in the future):

mkdir db


Then you can start RethinkDB with:

rethinkdb --directory db

or

rethinkdb --directory path/to/db

This will also start the RethinkDB admin panel on port 8080 (localhost only).

If you want start RethinkDB as a background process, add --daemon to the command.

To setup all needed tables in RethinkDB, run:

npm run setup_db

Make sure RethinkDB is running when you run this command.

Starting the server

First you need to start RethinkDB (see above).

Then you can start the server with:

node index.js

or

node .

Tested on

  • Node.js v18.16.0 and v21.1.0

  • NPM v9.6.3 and v10.2.0

  • RethinkDB v2.4.3

About

Guess The Song - Server in Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors