Skip to content

belchior/rust_web_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Web Server

Stack

Server

  • Rust
  • Actix Web
  • MongoDB

Client

  • TypeScript
  • React
  • Material UI

Development

To start developing you should build the base_image for server and client running the command below

docker-compose build server_base_image client_base_image

After that you can start both using the command

docker-compose up client server

Server

The base_image contains all compiled dependencies to be used in development, testing and build for production.

You can build it manually with

docker-compose build server_base_image

To start's server in development mode

docker-compose up server

To build server for production

docker-compose build server_build

To run tests

# in watch mode
docker-compose run --rm server_test

# for single execution
docker-compose run --rm server_test ./scripts/test.sh

# for single execution with coverage
docker-compose run --rm server_test ./scripts/test_coverage.sh

To debug database

# in development environment
docker-compose exec database mongo database

# in test environment
docker-compose exec database mongo test_database

Client

As the same as server the base_image contains all dependencies to be used in development, testing and build for production.

You can build it manually with

docker-compose build client_base_image

To start's in development mode

docker-compose up client

To build client for production

docker-compose build client_build

References

Actix Web

MongoDB

Testing Rust Code

Generate Code Coverage

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published