Skip to content

nikolawhallon/pixel-points

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Points

A simple leaderboard / high-score server written in Rust.

Setting up the database

It uses a postgres database. To spin it up, go to the launch-database directory and run docker compose up -d (after having installed docker-compose). Then add an environment variable pointing to this database:

export DATABASE_URL="postgresql://pixel:pixel@localhost:5432"

Now we are ready to initialize the database with our schema. Do this using the sqlx CLI like this:

cargo sqlx database setup

Running the server

Spin up the server with a cargo run and try hitting it with curl localhost:3000/v1/games!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages